Update pibackup.sh

This commit is contained in:
2022-10-08 16:43:54 -05:00
parent 5044ef3937
commit ce5a98ede9

View File

@@ -23,9 +23,9 @@ if [ "$1" != "update" ]; then
echo "$(date) - Checking for mounted Backup Drive..."
if [ ! -f ${MountPoint}/mounted ]; then
echo "$(date) - Not found, mounting drive now..."
#mount.cifs ${ServerName} ${MountPoint} -o user=${UserName},password=${Password}
mount.cifs ${ServerName} ${MountPoint} -o user=${UserName},password=${Password}
c=0
until [ $c -gt 59 ]; do
until [ $c -gt 179 ]; do
if [ -f ${MountPoint}/mounted ]; then
echo "$(date) - Backup Drive mounted"
c=100