[PC-BSD Commits] r12098 - pcbsd/current/src-qt4/life-preserver/scripts

svn at pcbsd.org svn at pcbsd.org
Thu Aug 11 08:57:11 PDT 2011


Author: kris
Date: 2011-08-11 08:57:11 -0700 (Thu, 11 Aug 2011)
New Revision: 12098

Modified:
   pcbsd/current/src-qt4/life-preserver/scripts/backup-rsync.sh
Log:

Make sure to use the user specified port number in the check 



Modified: pcbsd/current/src-qt4/life-preserver/scripts/backup-rsync.sh
===================================================================
--- pcbsd/current/src-qt4/life-preserver/scripts/backup-rsync.sh	2011-08-11 15:54:36 UTC (rev 12097)
+++ pcbsd/current/src-qt4/life-preserver/scripts/backup-rsync.sh	2011-08-11 15:57:11 UTC (rev 12098)
@@ -86,7 +86,7 @@
 fi
 
 # Make sure we can connect
-ssh ${SSHHOST} -o BatchMode=yes "ls" >/dev/null 2>/dev/null
+ssh -p ${PORT} ${SSHHOST} -o BatchMode=yes "ls" >/dev/null 2>/dev/null
 if [ $? -ne 0 ]; then
   echo "Failed to connect! ${STARTDATE}"
   echo "Failed to connect! ${STARTDATE}" >${RESULTFILE}
@@ -94,7 +94,7 @@
 fi
 
 # Make sure we have the BACKDIR created
-ssh ${SSHHOST} "mkdir -p ${BACKDIR}"
+ssh -p ${PORT} ${SSHHOST} "mkdir -p ${BACKDIR}"
 
 rsync -avvRHz \
   --delete \



More information about the Commits mailing list