diff -ruN smeserver-automysqlbackup-3.0.RC6.old/root/sbin/e-smith/runmysqlbackup smeserver-automysqlbackup-3.0.RC6/root/sbin/e-smith/runmysqlbackup --- smeserver-automysqlbackup-3.0.RC6.old/root/sbin/e-smith/runmysqlbackup 2018-11-26 18:08:44.770696142 +0100 +++ smeserver-automysqlbackup-3.0.RC6/root/sbin/e-smith/runmysqlbackup 2018-11-26 18:20:51.680243461 +0100 @@ -2,6 +2,12 @@ /usr/local/bin/automysqlbackup $1 >/dev/null -chown root:root /root/backup/db* -R -find /root/backup/db* -type f -exec chmod 400 {} \; -find /root/backup/db* -type d -exec chmod 700 {} \; +DB=$(/sbin/e-smith/db configuration getprop automysqlbackup Backupdir) + +if [ -z "$DB" ]; then + DB="/root/backup/db"; +fi + +chown root:root $DB* -R +find $DB* -type f -exec chmod 400 {} \; +find $DB* -type d -exec chmod 700 {} \;