Update run.sh
This commit is contained in:
13
run.sh
13
run.sh
@@ -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