/[smecontribs]/rpms/smeserver-automysqlbackup/contribs9/smeserver-automysqlbackup-3.0.RC6-bz10806.errorsAndCreateUsers.patch
ViewVC logotype

Diff of /rpms/smeserver-automysqlbackup/contribs9/smeserver-automysqlbackup-3.0.RC6-bz10806.errorsAndCreateUsers.patch

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

Revision 1.3 by jpp, Tue Nov 26 17:49:26 2019 UTC Revision 1.5 by jpp, Tue Nov 26 18:31:37 2019 UTC
# Line 406  diff -Nur smeserver-automysqlbackup-3.0. Line 406  diff -Nur smeserver-automysqlbackup-3.0.
406  diff -Nur smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/e-smith/sql/init/automysqlbackup smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/e-smith/sql/init/automysqlbackup  diff -Nur smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/e-smith/sql/init/automysqlbackup smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/e-smith/sql/init/automysqlbackup
407  --- smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/e-smith/sql/init/automysqlbackup       1969-12-31 19:00:00.000000000 -0500  --- smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/e-smith/sql/init/automysqlbackup       1969-12-31 19:00:00.000000000 -0500
408  +++ smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/e-smith/sql/init/automysqlbackup   2019-10-02 22:15:09.804000000 -0400  +++ smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/e-smith/sql/init/automysqlbackup   2019-10-02 22:15:09.804000000 -0400
409  @@ -0,0 +1,35 @@  @@ -0,0 +1,37 @@
410  +{  +{
411  +my $user = $automysqlbackup{'DbUser'} || 'backupuser';  +my $user = $automysqlbackup{'DbUser'} || 'backupuser';
412  +my $pass = $automysqlbackup{'DbPassword'} || 'automysqlbackup';  +my $pass = $automysqlbackup{'DbPassword'} || 'automysqlbackup';
# Line 432  diff -Nur smeserver-automysqlbackup-3.0. Line 432  diff -Nur smeserver-automysqlbackup-3.0.
432  +                     PASSWORD ('$pass'));  +                     PASSWORD ('$pass'));
433  +  +
434  +  +
435  +GRANT EVENT,SELECT,LOCK TABLES ON *.* TO 'backupuser'\@'localhost' ;  +REVOKE ALL PRIVILEGES ON *.* FROM '$user'\@'localhost';
436    +REVOKE GRANT OPTION ON *.* FROM '$user'\@'localhost';
437    +GRANT EVENT,SELECT,LOCK TABLES, SHOW VIEW ON *.* TO '$user'\@'localhost' ;
438  +  +
439  +  +
440  +FLUSH PRIVILEGES;  +FLUSH PRIVILEGES;
# Line 445  diff -Nur smeserver-automysqlbackup-3.0. Line 447  diff -Nur smeserver-automysqlbackup-3.0.
447  diff -Nur smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/e-smith/sql/init55/automysqlbackup smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/e-smith/sql/init55/automysqlbackup  diff -Nur smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/e-smith/sql/init55/automysqlbackup smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/e-smith/sql/init55/automysqlbackup
448  --- smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/e-smith/sql/init55/automysqlbackup     1969-12-31 19:00:00.000000000 -0500  --- smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/e-smith/sql/init55/automysqlbackup     1969-12-31 19:00:00.000000000 -0500
449  +++ smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/e-smith/sql/init55/automysqlbackup 2019-10-02 22:15:59.323000000 -0400  +++ smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/e-smith/sql/init55/automysqlbackup 2019-10-02 22:15:59.323000000 -0400
450  @@ -0,0 +1,35 @@  @@ -0,0 +1,37 @@
451  +{  +{
452  +my $user = $automysqlbackup{'DbUser'} || 'backupuser';  +my $user = $automysqlbackup{'DbUser'} || 'backupuser';
453  +my $pass = $automysqlbackup{'DbPassword'} || 'automysqlbackup';  +my $pass = $automysqlbackup{'DbPassword'} || 'automysqlbackup';
# Line 471  diff -Nur smeserver-automysqlbackup-3.0. Line 473  diff -Nur smeserver-automysqlbackup-3.0.
473  +                     PASSWORD ('$pass'));  +                     PASSWORD ('$pass'));
474  +  +
475  +  +
476  +GRANT EVENT,SELECT,LOCK TABLES ON *.* TO 'backupuser'\@'localhost' ;  +REVOKE ALL PRIVILEGES ON *.* FROM '$user'\@'localhost';
477    +REVOKE GRANT OPTION ON *.* FROM '$user'\@'localhost';
478    +GRANT EVENT,SELECT,LOCK TABLES, SHOW VIEW ON *.* TO '$user'\@'localhost' ;
479  +  +
480  +  +
481  +FLUSH PRIVILEGES;  +FLUSH PRIVILEGES;
# Line 484  diff -Nur smeserver-automysqlbackup-3.0. Line 488  diff -Nur smeserver-automysqlbackup-3.0.
488  diff -Nur smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/e-smith/sql/init57/automysqlbackup smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/e-smith/sql/init57/automysqlbackup  diff -Nur smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/e-smith/sql/init57/automysqlbackup smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/e-smith/sql/init57/automysqlbackup
489  --- smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/e-smith/sql/init57/automysqlbackup     1969-12-31 19:00:00.000000000 -0500  --- smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/e-smith/sql/init57/automysqlbackup     1969-12-31 19:00:00.000000000 -0500
490  +++ smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/e-smith/sql/init57/automysqlbackup 2019-10-02 22:13:28.624000000 -0400  +++ smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/e-smith/sql/init57/automysqlbackup 2019-10-02 22:13:28.624000000 -0400
491  @@ -0,0 +1,41 @@  @@ -0,0 +1,43 @@
492  +{  +{
493  +my $user = $automysqlbackup{'DbUser'} || 'backupuser';  +my $user = $automysqlbackup{'DbUser'} || 'backupuser';
494  +my $pass = $automysqlbackup{'DbPassword'} || 'automysqlbackup';  +my $pass = $automysqlbackup{'DbPassword'} || 'automysqlbackup';
# Line 516  diff -Nur smeserver-automysqlbackup-3.0. Line 520  diff -Nur smeserver-automysqlbackup-3.0.
520  +                     '');  +                     '');
521  +  +
522  +  +
523  +GRANT EVENT,SELECT,LOCK TABLES ON *.* TO 'backupuser'\@'localhost' ;  +REVOKE ALL PRIVILEGES ON *.* FROM '$user'\@'localhost';
524    +REVOKE GRANT OPTION ON *.* FROM '$user'\@'localhost';
525    +GRANT EVENT,SELECT,LOCK TABLES, SHOW VIEW ON *.* TO '$user'\@'localhost' ;
526  +  +
527  +  +
528  +FLUSH PRIVILEGES;  +FLUSH PRIVILEGES;
# Line 562  diff -Nur smeserver-automysqlbackup-3.0. Line 568  diff -Nur smeserver-automysqlbackup-3.0.
568  +    find $DB$2 -type f -exec chmod 400 {} \;  +    find $DB$2 -type f -exec chmod 400 {} \;
569  +    find $DB$2 -type d -exec chmod 700 {} \;  +    find $DB$2 -type d -exec chmod 700 {} \;
570  +fi  +fi
571    diff -Nur smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/automysqlbackup/mysql57.conf/20db smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/automysqlbackup/mysql57.conf/20db
572    --- smeserver-automysqlbackup-3.0.RC6.old/root/etc/e-smith/templates/etc/automysqlbackup/mysql57.conf/20db      2019-11-26 13:27:03.395000000 -0500
573    +++ smeserver-automysqlbackup-3.0.RC6/root/etc/e-smith/templates/etc/automysqlbackup/mysql57.conf/20db  2019-11-26 13:30:23.571000000 -0500
574    @@ -4,7 +4,7 @@
575     # DB Specific
576     CONFIG_backup_dir=${BACKUPDIR}_mysql57
577     CONFIG_mysql_dump_full_schema='no'
578    -CONFIG_db_exclude=( 'performance_schema' 'sys' )
579    +CONFIG_db_exclude=( 'information_schema' 'performance_schema' 'sys' )
580     CONFIG_mysql_dump_socket='/var/lib/mysql/mysql57.sock'
581     # End
582     _EOF


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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