diff --git a/bin/backuptool b/bin/backuptool index 5a4fce7..878d918 100755 --- a/bin/backuptool +++ b/bin/backuptool @@ -398,7 +398,7 @@ else fi # Grab the MySQL pass we need for dumping backups -MYSQL_PASSWORD=`cat /federated/apps/pdnsmysql/.env | grep MYSQL_ROOT_PASSWORD | awk -F= '{ print $2 }'` +[ -d "/federated/apps/pdnsmysql" ] && MYSQL_PASSWORD=`cat /federated/apps/pdnsmysql/.env | grep MYSQL_ROOT_PASSWORD | awk -F= '{ print $2 }'` # If -d is specified then run delete backup [ $RUN_DELETE ] && delete_backup