summaryrefslogtreecommitdiffstats
path: root/debian/mariadb-server.postinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 13:39:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 13:39:14 +0000
commita569d4096d91a06a40a8dbf4ff4350f664d462bd (patch)
tree7203bcfb59d24f9500b15521eab2f77f024f4791 /debian/mariadb-server.postinst
parentMerging upstream version 1:10.11.7. (diff)
downloadmariadb-a569d4096d91a06a40a8dbf4ff4350f664d462bd.tar.xz
mariadb-a569d4096d91a06a40a8dbf4ff4350f664d462bd.zip
Merging debian version 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