From 8bdbcff6afb3f822c4cac401a57040d2f0d98aee Mon Sep 17 00:00:00 2001 From: David Bartley Date: Sat, 1 Mar 2008 14:44:28 -0500 Subject: [PATCH] Add password support --- csc-sync-debian | 6 ++++-- csc-sync-standard | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/csc-sync-debian b/csc-sync-debian index 848bf5f..a1313ee 100755 --- a/csc-sync-debian +++ b/csc-sync-debian @@ -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 #-----------------------------------------------------------------------------# diff --git a/csc-sync-standard b/csc-sync-standard index 2493975..1b493b8 100755 --- a/csc-sync-standard +++ b/csc-sync-standard @@ -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 #-----------------------------------------------------------------------------#