summaryrefslogtreecommitdiffstats
path: root/debian/mariadb-server.postinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:33:08 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:33:08 +0000
commit7e05033f3904808cdd611a9c81c9b0ba30e73acd (patch)
treed31799a885d962cc183a52288c2eae01c682a31c /debian/mariadb-server.postinst
parentMerging upstream version 1:10.11.7. (diff)
downloadmariadb-ec977fd1d2296d2dff3616ac8451677c5da455d4.tar.xz
mariadb-ec977fd1d2296d2dff3616ac8451677c5da455d4.zip
Adding debian version 1:10.11.7-1.debian/1%10.11.7-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/mariadb-server.postinst')
-rw-r--r--debian/mariadb-server.postinst23
1 files changed, 0 insertions, 23 deletions
diff --git a/debian/mariadb-server.postinst b/debian/mariadb-server.postinst
index 0ca5731b..ca267a3a 100644
--- a/debian/mariadb-server.postinst
+++ b/debian/mariadb-server.postinst
@@ -301,28 +301,5 @@ esac
db_stop # in case invoke fails
-# dh_systemd_start doesn't emit anything since we still ship /etc/init.d/mariadb.
-# Thus MariaDB server is started via init.d script, which in turn redirects to
-# systemctl. If we upgrade from MySQL mysql.service may be masked, which also
-# means init.d script is disabled. Unmask mysql service explicitly.
-# Check first that the command exists, to avoid emitting any warning messages.
-if [ -x "$(command -v deb-systemd-helper)" ]
-then
- deb-systemd-helper unmask mysql.service > /dev/null
-fi
-
#DEBHELPER#
-# Modified dh_systemd_start snippet that's not added automatically
-if [ -d /run/systemd/system ]
-then
- systemctl --system daemon-reload >/dev/null || true
- deb-systemd-invoke start mariadb.service >/dev/null || true
- # Modified dh_installinit snippet to only run with sysvinit
-elif [ -x "/etc/init.d/mariadb" ]
-then
- if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]
- then
- invoke-rc.d mariadb start || exit $?
- fi
-fi