Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:redwil:15.4
tmate-slave
tmate-slave.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tmate-slave.sh of Package tmate-slave
#!/bin/sh APP_NAME=tmate-slave APP_USER="$APP_NAME" APP_CONF_DIR="/" APP_CMD="/usr/bin/$APP_NAME" APP_ARG_HOST="" APP_ARG_KEYSDIR="/etc/tmate-slave/keys" # source config file if [ -r /etc/sysconfig/$APP_NAME ]; then . /etc/sysconfig/$APP_NAME fi # set defaults if not set in config file [ -z "$APP_ARG_PORT" ] && APP_ARG_PORT="22" APP_ARGS="-k $APP_ARG_KEYSDIR -p $APP_ARG_PORT " [ -z $APP_ARG_HOST ] || APP_ARGS="$APP_ARGS -h $APP_ARG_HOST" name=$APP_NAME stdout_log="/var/log/$name.log" stderr_log="/var/log/$name.err" gen_key() { keytype=$1 ks="${keytype}_" key="$APP_ARG_KEYSDIR/ssh_host_${ks}key" if [ ! -e "${key}" ] ; then ssh-keygen -t ${keytype} -f "${key}" -N '' return $? fi } gen_key dsa && \ gen_key rsa && \ gen_key ecdsa || \ exit 1 chmod 400 $APP_ARG_KEYSDIR/*key $APP_CMD $APP_ARGS
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor