/[smecontribs]/rpms/smeserver-automysqlbackup/contribs9/smeserver-automysqlbackup-update-permission-change.patch
ViewVC logotype

Contents of /rpms/smeserver-automysqlbackup/contribs9/smeserver-automysqlbackup-update-permission-change.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Tue Nov 27 14:00:37 2018 UTC (6 years ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-automysqlbackup-3_0_RC6-15_el6_sme, smeserver-automysqlbackup-3_0_RC6-12_el6_sme, smeserver-automysqlbackup-3_0_RC6-11_el6_sme, smeserver-automysqlbackup-3_0_RC6-14_el6_sme, smeserver-automysqlbackup-3_0_RC6-13_el6_sme, HEAD
* Mon Nov 26 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-11.sme
- fix runmysqlscript to allow for change in Backupdir key [SME: 10655]

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 {} \;

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed