mirror of
https://github.com/MariaDB/server.git
synced 2026-05-10 17:14:30 +02:00
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:
parent
e7d152293d
commit
61a6f4bd96
3 changed files with 4 additions and 1 deletions
|
|
@ -81,7 +81,8 @@ SET(CPACK_RPM_SPEC_MORE_DEFINE "
|
|||
%define _bindir ${INSTALL_BINDIRABS}
|
||||
%define _sbindir ${INSTALL_SBINDIRABS}
|
||||
%define _sysconfdir ${INSTALL_SYSCONFDIR}
|
||||
%define restart_flag %{_localstatedir}/lib/rpm-state/mariadb-restart
|
||||
%define restart_flag_dir %{_localstatedir}/lib/rpm-state/mariadb
|
||||
%define restart_flag %{restart_flag_dir}/need-restart
|
||||
")
|
||||
|
||||
# this creative hack is described here: http://www.cmake.org/pipermail/cmake/2012-January/048416.html
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
# request the server restart
|
||||
mkdir -p %{restart_flag_dir}
|
||||
echo > %{restart_flag}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
if [ $1 -ge 1 ]; then
|
||||
# request the server restart
|
||||
mkdir -p %{restart_flag_dir}
|
||||
echo > %{restart_flag}
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue