mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
01e9e3955a
Make sure that every post and pre script are using bash and have set -e in next to shebang. Command set -e makes sure that if script fails in one command it will fail whole script.
14 lines
330 B
Bash
14 lines
330 B
Bash
#!/bin/bash
|
|
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
|