From ebe3a80794e23f5e53288884687b648caa8a2e6a Mon Sep 17 00:00:00 2001 From: Derek Crudgington Date: Fri, 21 Feb 2025 15:09:11 +0000 Subject: [PATCH] Added check for pdnsmysql in backuptool --- bin/backuptool | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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