Update pibackup.sh

This commit is contained in:
2023-04-10 18:50:55 -05:00
parent 77d391ddbb
commit 69230f1082

View File

@@ -23,8 +23,12 @@ 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}
if [ "${ServerName}" != "" ]; then
mount.cifs ${ServerName} ${MountPoint} -o user=${UserName},password=${Password}
else
mount -a
foi
c=0
until [ $c -gt 179 ]; do
if [ -f ${MountPoint}/mounted ]; then