27 |
+ # set root password , 104 and above have a different syntax and allow root passwordless access |
+ # set root password , 104 and above have a different syntax and allow root passwordless access |
28 |
+ if [ !!!VER!!! -le 103 ] |
+ if [ !!!VER!!! -le 103 ] |
29 |
+ then |
+ then |
30 |
+ /opt/rh/rh-mariadb!!!VER!!!/root/usr/libexec/mysqld --bootstrap --datadir="$datadir" --user="mysql" < /var/lib/mysql/set.password |
+ /opt/rh/rh-mariadb!!!VER!!!/root/usr/libexec/mysqld --bootstrap --datadir="$datadir" --user="mysql" < /var/lib/mysql/set.password2 |
31 |
+ fi |
+ fi |
32 |
# upgrade does not need to be run on a fresh datadir |
# upgrade does not need to be run on a fresh datadir |
33 |
#echo "5.7.24" >"$datadir/mysql_upgrade_info" |
#echo "5.7.24" >"$datadir/mysql_upgrade_info" |
42 |
+ # else we set root password anyway ! just to be sure ! 104 and above have a different syntax and allow root passwordless access |
+ # else we set root password anyway ! just to be sure ! 104 and above have a different syntax and allow root passwordless access |
43 |
+ if [ !!!VER!!! -le 103 ] |
+ if [ !!!VER!!! -le 103 ] |
44 |
+ then |
+ then |
45 |
+ /opt/rh/rh-mariadb!!!VER!!!/root/usr/libexec/mysqld --bootstrap --datadir="$datadir" --user="mysql" < /var/lib/mysql/set.password |
+ /opt/rh/rh-mariadb!!!VER!!!/root/usr/libexec/mysqld --bootstrap --datadir="$datadir" --user="mysql" < /var/lib/mysql/set.password2 |
46 |
+ fi |
+ fi |
47 |
+ exit 0 |
+ exit 0 |
48 |
fi |
fi |
170 |
KillMode=process |
KillMode=process |
171 |
GuessMainPID=no |
GuessMainPID=no |
172 |
RemainAfterExit=yes |
RemainAfterExit=yes |
173 |
-ExecStart=/sbin/e-smith/systemd/mariadb!!!VER!!!-mysql.init start |
+ExecStart=/sbin/e-smith/systemd/mariadb!!!VER!!!-mysql.init start |
174 |
-ExecStop=/sbin/e-smith/systemd/mariadb!!!VER!!!-mysql.init stop |
+ExecStop=/sbin/e-smith/systemd/mariadb!!!VER!!!-mysql.init stop |
175 |
+ExecStart=/sbin/e-smith/systemd/mariadb!!!VER!!!-mariadb.init start |
-ExecStart=/sbin/e-smith/systemd/mariadb!!!VER!!!-mariadb.init start |
176 |
+ExecStop=/sbin/e-smith/systemd/mariadb!!!VER!!!-mariadb.init stop |
-ExecStop=/sbin/e-smith/systemd/mariadb!!!VER!!!-mariadb.init stop |
177 |
|
|
178 |
[Install] |
[Install] |
179 |
WantedBy=sme-server.target |
WantedBy=sme-server.target |