/[smeserver]/rpms/e-smith-mysql/sme10/e-smith-mysql-2.6.0-bz11145-updateevent.patch
ViewVC logotype

Annotation of /rpms/e-smith-mysql/sme10/e-smith-mysql-2.6.0-bz11145-updateevent.patch

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


Revision 1.1 - (hide annotations) (download)
Tue Dec 8 02:55:36 2020 UTC (3 years, 11 months ago) by jpp
Branch: MAIN
CVS Tags: e-smith-mysql-2_6_0-22_el7_sme, e-smith-mysql-2_6_0-20_el7_sme, e-smith-mysql-2_6_0-17_el7_sme, e-smith-mysql-2_6_0-18_el7_sme, e-smith-mysql-2_6_0-19_el7_sme, e-smith-mysql-2_6_0-21_el7_sme, e-smith-mysql-2_6_0-15_el7_sme, e-smith-mysql-2_6_0-16_el7_sme, e-smith-mysql-2_6_0-14_el7_sme, HEAD
* Mon Dec 07 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-14.sme
- e-smith-update event [SME: 11145]
- mariadb systemd integration [SME: 11021]
  move set.password and template
  create /usr/lib/systemd/system/mariadb.service.d/sme.conf
  create /sbin/e-smith/systemd/mariadb-initialize + chmod
  cleanup
- mysql.init systemd integration [SME: 11120]
  create mysql_init.service

1 jpp 1.1 diff -Nur e-smith-mysql-2.6.0.old/createlinks e-smith-mysql-2.6.0/createlinks
2     --- e-smith-mysql-2.6.0.old/createlinks 2020-12-07 17:10:02.059000000 -0500
3     +++ e-smith-mysql-2.6.0/createlinks 2020-12-07 21:52:19.205000000 -0500
4     @@ -56,3 +56,27 @@
5     safe_symlink("/var/service/mariadb", "root/service/mariadb");
6     safe_symlink("../daemontools", "root/etc/rc.d/init.d/supervise/mariadb");
7     service_link_enhanced("mariadb", 50, 7);
8     +
9     +#--------------------------------------------------
10     +# actions for e-smith-mysql-update event
11     +#--------------------------------------------------
12     +$event = "e-smith-mysql-update";
13     +
14     +foreach (qw(
15     + /etc/my.cnf
16     + /root/.my.cnf
17     + /var/service/mariadb/set.password
18     + ))
19     +{
20     + templates2events("$_", $event);
21     +}
22     +
23     +safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/mariadb");
24     +
25     +# Move all database dumps except for mysql.dump to sql/init
26     +event_link("mysql-load-tables", $event, "40");
27     +
28     +# systemd-specific action mandatory for this package-update event
29     +event_link("systemd-reload", $event, "89");
30     +event_link("systemd-default", $event, "88");
31     +

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