mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
MDEV-9643: Don't emit any "deb-systemd-helper not found" warnings
This commit is contained in:
parent
e7d50efc45
commit
802843eda0
2 changed files with 8 additions and 4 deletions
|
@ -266,8 +266,10 @@ db_stop # in case invoke failes
|
|||
|
||||
# If we upgrade from MySQL mysql.service may be masked, which also
|
||||
# means init.d script is disabled. Unmask mysql service explicitely.
|
||||
# Ignore exit code as command is not available everywhere.
|
||||
deb-systemd-helper unmask mysql.service > /dev/null || true
|
||||
# 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#
|
||||
|
||||
|
|
|
@ -282,8 +282,10 @@ db_stop # in case invoke failes
|
|||
|
||||
# If we upgrade from MySQL mysql.service may be masked, which also
|
||||
# means init.d script is disabled. Unmask mysql service explicitely.
|
||||
# Ignore exit code as command is not available everywhere.
|
||||
deb-systemd-helper unmask mysql.service > /dev/null || true
|
||||
# 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#
|
||||
|
||||
|
|
Loading…
Reference in a new issue