/[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.2 by jpp, Tue Nov 26 17:18:49 2019 UTC Revision 1.4 by jpp, Tue Nov 26 18:26:54 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,35 @@  @@ -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 503  diff -Nur smeserver-automysqlbackup-3.0. Line 507  diff -Nur smeserver-automysqlbackup-3.0.
507  +REPLACE INTO user (  +REPLACE INTO user (
508  +                     host,  +                     host,
509  +                     user,  +                     user,
510  +                     authentication_string)  +                     authentication_string,
511    +                     ssl_cipher,
512    +                     x509_issuer,
513    +                     x509_subject)
514  +            VALUES (  +            VALUES (
515  +                     'localhost',  +                     'localhost',
516  +                     '$user',  +                     '$user',
517  +                     PASSWORD ('$pass'));  +                     PASSWORD ('$pass'),
518    +                     '',
519    +                     '',
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;


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