From 9d112cb5c8efa46f4dc63a218fdc076dc63e41a3 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 8 Oct 2022 16:09:55 -0500 Subject: [PATCH] Update run.sh --- run.sh | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) 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