diff options
author | Joerg Jaspert <joerg@debian.org> | 2008-10-22 00:21:05 +0200 |
---|---|---|
committer | Joerg Jaspert <joerg@debian.org> | 2008-10-22 00:21:05 +0200 |
commit | df7531cd2d14e1633d2f755c3f6405f8ed331219 (patch) | |
tree | abddbd4886284bbd11cb7afcbed82a36b5067888 | |
parent | 91e939326074e51b11e003ded92da2a4cb7dd6be (diff) |
runmirrors
define some more variables
Signed-off-by: Joerg Jaspert <joerg@debian.org>
-rw-r--r-- | etc/common | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -28,11 +28,22 @@ signal () { ARGS="SIGNAL_OPTS[*]" local ${!ARGS} + MIRROR=${MIRROR:-""} + HOSTNAME=${HOSTNAME:-""} + USERNAME=${USERNAME:-""} + SSHPROTO=${SSHPROTO:-""} + SSHKEY=${SSHKEY:-""} + PUSHLOCKOWN=${PUSHLOCKOWN:-""} + PUSHTYPE=${PUSHTYPE:-"all"} + PUSHARCHIVE=${PUSHARCHIVE:-""} + PUSHCB=${PUSHCB:-""} + PUSHLOCKS=${PUSHLOCKS:-""} + # Defaults we always want, no matter what SSH_OPTIONS="-o BatchMode=yes -o SetupTimeOut=45 -o ConnectTimeout=45 -o PasswordAuthentication=no" - if [ $SSHOPTS -n ]; then - SSH_OPTIONS="$SSH_OPTIONS $SSHOPTS" + if [ ${SSHOPTS} -n ]; then + SSH_OPTIONS="${SSH_OPTIONS} $[SSHOPTS}" fi if [ ${SSHPROTO} -ne 1 ] && [ ${SSHPROTO} -ne 2 ]; then |