Create tmp directory if it doesn't exist already

This commit is contained in:
Bernhard Rosenkränzer 2025-02-22 21:52:40 +01:00
parent def419a7cd
commit 808e7e3a87

View File

@ -402,6 +402,7 @@ fi
# Grab the MySQL pass we need for dumping backups
[ -d "/federated/apps/pdnsmysql" ] && MYSQL_PASSWORD=`cat /federated/apps/pdnsmysql/.env | grep MYSQL_ROOT_PASSWORD | awk -F= '{ print $2 }'`
mkdir -p /federated/tmp
# If -d is specified then run delete backup
[ $RUN_DELETE ] && delete_backup