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