summaryrefslogtreecommitdiffstats
path: root/debian/mariadb-server.prerm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:24:44 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:24:44 +0000
commitbf772a107fc4511b6e3e5aafddb762ca3fa74f0b (patch)
tree8d994c2f3d8e9f01da4d334f90a20798760d9318 /debian/mariadb-server.prerm
parentAdding upstream version 1:10.11.6. (diff)
downloadmariadb-bf772a107fc4511b6e3e5aafddb762ca3fa74f0b.tar.xz
mariadb-bf772a107fc4511b6e3e5aafddb762ca3fa74f0b.zip
Adding debian version 1:10.11.6-2.debian/1%10.11.6-2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/mariadb-server.prerm')
-rw-r--r--debian/mariadb-server.prerm14
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/mariadb-server.prerm b/debian/mariadb-server.prerm
new file mode 100644
index 00000000..2701fa5f
--- /dev/null
+++ b/debian/mariadb-server.prerm
@@ -0,0 +1,14 @@
+#!/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