summaryrefslogtreecommitdiffstats
path: root/debian/mariadb-server-10.6.prerm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 18:04:23 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 18:04:23 +0000
commit9a6158e391576f265fbd7d0da2778ecad1dbecd5 (patch)
tree1409a92dae3e99541a9283fed1d0409adb033557 /debian/mariadb-server-10.6.prerm
parentAdding upstream version 1:10.6.11. (diff)
downloadmariadb-10.6-9a6158e391576f265fbd7d0da2778ecad1dbecd5.tar.xz
mariadb-10.6-9a6158e391576f265fbd7d0da2778ecad1dbecd5.zip
Adding debian version 1:10.6.11-2.debian/1%10.6.11-2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/mariadb-server-10.6.prerm12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/mariadb-server-10.6.prerm b/debian/mariadb-server-10.6.prerm
new file mode 100644
index 00000000..8fd172da
--- /dev/null
+++ b/debian/mariadb-server-10.6.prerm
@@ -0,0 +1,12 @@
+#!/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