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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f ${MountPoint}/mounted ]; then
|
/opt/idssys/pibackup/pibackup.sh ${1} ${2}
|
||||||
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
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user