1 |
jpp |
1.1 |
diff -Nur e-smith-mysql-2.6.0.old/root/usr/lib/systemd/system/mysql.init.service e-smith-mysql-2.6.0/root/usr/lib/systemd/system/mysql.init.service |
2 |
|
|
--- e-smith-mysql-2.6.0.old/root/usr/lib/systemd/system/mysql.init.service 1969-12-31 19:00:00.000000000 -0500 |
3 |
|
|
+++ e-smith-mysql-2.6.0/root/usr/lib/systemd/system/mysql.init.service 2020-12-07 22:37:53.569000000 -0500 |
4 |
|
|
@@ -0,0 +1,19 @@ |
5 |
|
|
+[Unit] |
6 |
|
|
+SourcePath=/etc/rc.d/init.d/mysql.init |
7 |
|
|
+Description=Koozali SME Server mysql DB injector for mariadb |
8 |
|
|
+After=mariadb.service |
9 |
|
|
+Requires=mariadb.service |
10 |
|
|
+ |
11 |
|
|
+[Service] |
12 |
|
|
+Type=oneshot |
13 |
|
|
+Restart=no |
14 |
|
|
+TimeoutSec=10min |
15 |
|
|
+IgnoreSIGPIPE=no |
16 |
|
|
+KillMode=process |
17 |
|
|
+GuessMainPID=no |
18 |
|
|
+RemainAfterExit=yes |
19 |
|
|
+ExecStart=/etc/rc.d/init.d/mysql.init start |
20 |
|
|
+ExecStop=/etc/rc.d/init.d/mysql.init stop |
21 |
|
|
+ |
22 |
|
|
+[Install] |
23 |
|
|
+WantedBy=sme-server.target |
24 |
jpp |
1.2 |
diff -Nur e-smith-mysql-2.6.0.old/root/etc/e-smith/templates/etc/e-smith/sql/init/10mysql_upgrade e-smith-mysql-2.6.0/root/etc/e-smith/templates/etc/e-smith/sql/init/10mysql_upgrade |
25 |
|
|
--- e-smith-mysql-2.6.0.old/root/etc/e-smith/templates/etc/e-smith/sql/init/10mysql_upgrade 2020-12-09 23:20:20.435000000 -0500 |
26 |
|
|
+++ e-smith-mysql-2.6.0/root/etc/e-smith/templates/etc/e-smith/sql/init/10mysql_upgrade 2020-12-09 23:23:42.874000000 -0500 |
27 |
|
|
@@ -1,9 +1,8 @@ |
28 |
|
|
#!/bin/sh |
29 |
|
|
/usr/bin/mysql_upgrade |
30 |
|
|
|
31 |
|
|
-P=$(cat /var/run/mariadb/mariadb.pid) |
32 |
|
|
/bin/rm /var/run/mariadb/mariadb.pid |
33 |
|
|
-kill -TERM $P |
34 |
|
|
+/usr/bin/systemctl restart mariadb.service |
35 |
|
|
for i in $(seq 1 20); |
36 |
|
|
do |
37 |
|
|
if [ -f /var/run/mariadb/mariadb.pid ] |