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 #-----------------------------------------------------------------------------#