diff --git a/run.sh b/run.sh index ca3d09a..5041c18 100755 --- a/run.sh +++ b/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