diff --git a/bin-shared/send_master.sh b/bin-shared/send_master.sh index a244bcd..6a549f9 100755 --- a/bin-shared/send_master.sh +++ b/bin-shared/send_master.sh @@ -1,7 +1,6 @@ #!/usr/bin/env bash # TBD: -# - ensure all SERVER_* variables actually exist in environment # - test the script :) # - add parameter to set loop=true # - allow passing the script a variable for the dir, rather than assuming curr @@ -23,8 +22,15 @@ fi new_dir="`basename $DIR`" new_dir="${new_dir//MASTER/clone}" +sleep=0 do - clone -e "ssh -p $SERVER_PORT" ./ $SERVER_USER@$SERVER_NAME:$SERVER_SFTP/$new_dir + if (( $sleep > 0 )); then + echo "Sleeping for '$sleep' seconds..." + sleep $sleep + fi + #clone -e "ssh -p $PROD_DATA_PORT" ./ $PROD_DATA_USER@$PROD_DATA_HOST:$PROD_DATA_DIR/$new_dir + echo "FORTEST - Here's the command: 'clone -e "ssh -p $PROD_DATA_PORT" ./ $PROD_DATA_USER@$PROD_DATA_HOST:$PROD_DATA_DIR/$new_dir'" + sleep=30 while $loop ## Complete ##