Add password support
authorDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Sat, 1 Mar 2008 19:44:28 +0000 (14:44 -0500)
committerDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Sat, 1 Mar 2008 19:44:28 +0000 (14:44 -0500)
csc-sync-debian
csc-sync-standard

index 848bf5f..a1313ee 100755 (executable)
@@ -113,8 +113,10 @@ LOCK_TIMEOUT=360
 # uncomment the following lines (and edit the other file).
 
 # . ftpsync.conf
-# export RSYNC_PASSWORD
-# RSYNC_HOST=$RSYNC_USER@$RSYNC_HOST
+export RSYNC_PASSWORD
+if [[ "$RSYNC_USER" != "" ]]; then
+    RSYNC_HOST=$RSYNC_USER@$RSYNC_HOST
+fi
 
 #-----------------------------------------------------------------------------#
 
index 2493975..1b493b8 100755 (executable)
@@ -33,8 +33,10 @@ LOCK_TIMEOUT=360
 # uncomment the following lines (and edit the other file).
 
 # . ftpsync.conf
-# export RSYNC_PASSWORD
-# RSYNC_HOST=$RSYNC_USER@$RSYNC_HOST
+export RSYNC_PASSWORD
+if [[ "$RSYNC_USER" != "" ]]; then
+    RSYNC_HOST=$RSYNC_USER@$RSYNC_HOST
+fi
 
 #-----------------------------------------------------------------------------#