Template
Update run.sh
This commit is contained in:
1 parent
754aa9ebbc
commit
9d112cb5c8
1 file changed
+2
-11
@@ -49,15 +49,6 @@ if [[ "${noheader}" != *" ${1} "* ]] && [[ "${noheader}" != *" ${2} "* ]]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -f ${MountPoint}/mounted ]; then
|
||||
mount.cifs ${ServerName} ${MountPoint} -o user=${UserName},password=${Password}
|
||||
sleep 10
|
||||
echo "waiting for backup folder to mount..."
|
||||
fi
|
||||
if [ -f ${MountPoint}/mounted ]; then
|
||||
/opt/idssys/pibackup/pibackup.sh ${1} ${2}
|
||||
else
|
||||
echo "Backup folder is not mounted (${MountPoint})"
|
||||
exit 1
|
||||
fi
|
||||
/opt/idssys/pibackup/pibackup.sh ${1} ${2}
|
||||
|
||||
exit 0
|
||||
Reference in new issue
Block a user