summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJoerg Jaspert <joerg@debian.org>2008-10-22 00:21:05 +0200
committerJoerg Jaspert <joerg@debian.org>2008-10-22 00:21:05 +0200
commitdf7531cd2d14e1633d2f755c3f6405f8ed331219 (patch)
treeabddbd4886284bbd11cb7afcbed82a36b5067888 /etc
parent91e939326074e51b11e003ded92da2a4cb7dd6be (diff)
runmirrors
define some more variables Signed-off-by: Joerg Jaspert <joerg@debian.org>
Diffstat (limited to 'etc')
-rw-r--r--etc/common15
1 files changed, 13 insertions, 2 deletions
diff --git a/etc/common b/etc/common
index f4c5505..deec7ca 100644
--- a/etc/common
+++ b/etc/common
@@ -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