deployfile.sh: do non-verbose output properly
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Wed, 31 Aug 2016 18:39:38 +0000 (11:39 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Wed, 31 Aug 2016 18:39:38 +0000 (11:39 -0700)
deployment/deployfile.sh

index b76dd9b..28f7b1a 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-_ProdServers=" app1 app2 app3 utility1 sip2 bibc-prod28-1"
+_ProdServers=" app1 app2 app3 utility1 sip2"
 
 usage()
 {
@@ -98,6 +98,8 @@ for HOST in $_hosts
 do
   RSYNC_DEST="${HOST}:${DEST}"
   if [[ -z "$VERBOSE" ]]; then
+    echo "deploying to ${HOST}"
+  else
     echo -e "$HOST:\n\tFILE=$FILE\n\tDEST=$DEST\n\tUSER=$USER\n\tBACKUP=$BACKUP\n\tSSH=$SSH\n\tRSYNC_DEST=$RSYNC_DEST\n\tAUTOPATH=$AUTOPATH\n\tAUTODEST=$AUTODEST\n"
   fi
   rsync -e"${SSH}" $BACKUP $RSYNC_OPTS $FILE $RSYNC_DEST