MDEV-14560 Extra engines enabled through additional config are not loaded on first installation

Use RedHat-recommended /var/lib/rpm-state/mariadb/ for restart flag.
This also fixes SUSE where /var/lib/rpm-state doesn't necessarily exist.
This commit is contained in:
Sergei Golubchik 2018-09-21 20:38:14 +02:00
commit 61a6f4bd96
3 changed files with 4 additions and 1 deletions

View file

@ -1,2 +1,3 @@
# request the server restart
mkdir -p %{restart_flag_dir}
echo > %{restart_flag}

View file

@ -1,5 +1,6 @@
if [ $1 -ge 1 ]; then
# request the server restart
mkdir -p %{restart_flag_dir}
echo > %{restart_flag}
fi