Update run.sh

This commit is contained in:
2022-10-08 16:09:55 -05:00
parent 754aa9ebbc
commit 9d112cb5c8

13
run.sh
View File

@@ -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