Update run.sh
This commit is contained in:
12
run.sh
12
run.sh
@@ -54,16 +54,6 @@ if [[ "${noheader}" != *" ${1} "* ]] && [[ "${noheader}" != *" ${2} "* ]]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -f /mnt/urbackup-backup/mounted ]; then
|
||||
/bin/mount -a
|
||||
sleep 10
|
||||
fi
|
||||
|
||||
if [ -f /mnt/urbackup-backup/mounted ]; then
|
||||
/opt/idssys/pibackup/pibackup.sh ${1} ${2}
|
||||
else
|
||||
echo "Backup folder is not mounted (/mnt/urbackup-backup)"
|
||||
exit 1
|
||||
fi
|
||||
/opt/idssys/pibackup/pibackup.sh ${1} ${2}
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user