/[smecontribs]/rpms/smeserver-automysqlbackup/contribs10/smeserver-automysqlbackup-3.0.RC6-bz11970.update-cron.2.patch
ViewVC logotype

Annotation of /rpms/smeserver-automysqlbackup/contribs10/smeserver-automysqlbackup-3.0.RC6-bz11970.update-cron.2.patch

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


Revision 1.1 - (hide annotations) (download)
Mon Aug 15 13:10:44 2022 UTC (2 years, 2 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-automysqlbackup-3_0_RC6-30_el7_sme, smeserver-automysqlbackup-3_0_RC6-27_el7_sme, smeserver-automysqlbackup-3_0_RC6-32_el7_sme, smeserver-automysqlbackup-3_0_RC6-28_el7_sme, smeserver-automysqlbackup-3_0_RC6-31_el7_sme, smeserver-automysqlbackup-3_0_RC6-29_el7_sme, HEAD
* Mon Aug 15 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-27.sme
- Modify cron line again to add -bc option [SME: 11970]
- Modify runmysqlbackup to add option and conf input from cron

1 jcrisp 1.1 diff -ruN smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/cron.d/runmysqlbackup/10base smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/cron.d/runmysqlbackup/10base
2     --- smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/cron.d/runmysqlbackup/10base 2022-08-11 16:02:26.701411082 +0100
3     +++ smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/cron.d/runmysqlbackup/10base 2022-08-11 16:03:37.260583733 +0100
4     @@ -20,12 +20,12 @@
5     my $hours= ${'automysqlbackup'}{'Hour'}||'3';
6     $OUT = "$minutes $hours * * * root ";
7    
8     -$OUT .= "/sbin/e-smith/runmysqlbackup /etc/automysqlbackup/mymaria.conf '_mymaria' > /dev/null ; " if $mymaria eq "enabled";
9     -$OUT .= "/sbin/e-smith/runmysqlbackup /etc/automysqlbackup/mysql57.conf '_mysql57' > /dev/null ; " if $my57 eq "enabled";
10     -$OUT .= "/sbin/e-smith/runmysqlbackup /etc/automysqlbackup/mymaria101.conf '_mymaria_101' > /dev/null ; " if $my101 eq "enabled";
11     -$OUT .= "/sbin/e-smith/runmysqlbackup /etc/automysqlbackup/mymaria102.conf '_mymaria_102' > /dev/null ; " if $my102 eq "enabled";
12     -$OUT .= "/sbin/e-smith/runmysqlbackup /etc/automysqlbackup/mymaria103.conf '_mymaria_103' > /dev/null ; " if $my103 eq "enabled";
13     -$OUT .= "/sbin/e-smith/runmysqlbackup /etc/automysqlbackup/mymaria105.conf '_mymaria_105' > /dev/null ; " if $my105 eq "enabled";
14     +$OUT .= "/sbin/e-smith/runmysqlbackup -bc /etc/automysqlbackup/mymaria.conf > /dev/null ; " if $mymaria eq "enabled";
15     +$OUT .= "/sbin/e-smith/runmysqlbackup -bc /etc/automysqlbackup/mysql57.conf > /dev/null ; " if $my57 eq "enabled";
16     +$OUT .= "/sbin/e-smith/runmysqlbackup -bc /etc/automysqlbackup/mymaria101.conf > /dev/null ; " if $my101 eq "enabled";
17     +$OUT .= "/sbin/e-smith/runmysqlbackup -bc /etc/automysqlbackup/mymaria102.conf > /dev/null ; " if $my102 eq "enabled";
18     +$OUT .= "/sbin/e-smith/runmysqlbackup -bc /etc/automysqlbackup/mymaria103.conf > /dev/null ; " if $my103 eq "enabled";
19     +$OUT .= "/sbin/e-smith/runmysqlbackup -bc /etc/automysqlbackup/mymaria105.conf > /dev/null ; " if $my105 eq "enabled";
20    
21     $OUT .= "\n";
22    
23     diff -ruN smeserver-automysqlbackup-3.0.RC6.old/root/sbin/e-smith/runmysqlbackup smeserver-automysqlbackup-3.0.RC6/root/sbin/e-smith/runmysqlbackup
24     --- smeserver-automysqlbackup-3.0.RC6.old/root/sbin/e-smith/runmysqlbackup 2022-08-11 16:02:26.708411198 +0100
25     +++ smeserver-automysqlbackup-3.0.RC6/root/sbin/e-smith/runmysqlbackup 2022-08-11 16:02:46.003731874 +0100
26     @@ -1,6 +1,6 @@
27     #!/bin/bash
28    
29     -/usr/local/bin/automysqlbackup $1 >/dev/null
30     +/usr/local/bin/automysqlbackup $1 $2 >/dev/null
31    
32     DB=$(/sbin/e-smith/db configuration getprop automysqlbackup Backupdir)
33    

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