mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
50cdf0b5ea
Debian install scripts if-clauses are not formatted as they should be. This commit formats Debian Pre and Post script if-clauses.
14 lines
328 B
Bash
14 lines
328 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
#DEBHELPER#
|
|
|
|
# Modified dh_systemd_start snippet that's not added automatically
|
|
if [ -d /run/systemd/system ]
|
|
then
|
|
deb-systemd-invoke stop mariadb.service >/dev/null
|
|
# Modified dh_installinit snippet to only run with sysvinit
|
|
elif [ -x "/etc/init.d/mariadb" ]
|
|
then
|
|
invoke-rc.d mariadb stop || exit $?
|
|
fi
|