Added check for pdnsmysql in backuptool
This commit is contained in:
parent
37860c415a
commit
ebe3a80794
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user