[PC-BSD Commits] r6517 - pcbsd/trunk/pc-sysinstall/backend-query

svn at pcbsd.org svn at pcbsd.org
Tue Apr 6 15:49:12 PDT 2010


Author: kris
Date: 2010-04-06 15:49:12 -0700 (Tue, 06 Apr 2010)
New Revision: 6517

Modified:
   pcbsd/trunk/pc-sysinstall/backend-query/list-rsync-backups.sh
Log:

Use BatchMode for ssh queries, so it doesn't get stuck requesting a password if the user didn't setup
keys properly



Modified: pcbsd/trunk/pc-sysinstall/backend-query/list-rsync-backups.sh
===================================================================
--- pcbsd/trunk/pc-sysinstall/backend-query/list-rsync-backups.sh	2010-04-06 22:35:55 UTC (rev 6516)
+++ pcbsd/trunk/pc-sysinstall/backend-query/list-rsync-backups.sh	2010-04-06 22:49:12 UTC (rev 6517)
@@ -18,7 +18,7 @@
 FINDCMD="find . -type d -maxdepth 6 -name 'kernel' | grep '/boot/kernel'"
 
 # Get a listing of the number of full backups saved
-OLDBACKUPS=`ssh -p ${SSHPORT} ${SSHUSER}@${SSHHOST} "${FINDCMD}"`
+OLDBACKUPS=`ssh -o 'BatchMode=yes' -p ${SSHPORT} ${SSHUSER}@${SSHHOST} "${FINDCMD}"`
 if [ "$?" = "0" ]
 then
   for i in ${OLDBACKUPS}



More information about the Commits mailing list