Merge pull request #158 from ottok/ok-debpkg-10.0
MDEV-9643: Don't emit any "deb-systemd-helper not found" warnings
This commit is contained in:
commit
c3071af5f0
@ -266,8 +266,10 @@ db_stop # in case invoke failes
|
|||||||
|
|
||||||
# If we upgrade from MySQL mysql.service may be masked, which also
|
# If we upgrade from MySQL mysql.service may be masked, which also
|
||||||
# means init.d script is disabled. Unmask mysql service explicitely.
|
# means init.d script is disabled. Unmask mysql service explicitely.
|
||||||
# Ignore exit code as command is not available everywhere.
|
# Check first that the command exists, to avoid emitting any warning messages.
|
||||||
deb-systemd-helper unmask mysql.service > /dev/null || true
|
if [ -x "$(command -v deb-systemd-helper)" ]; then
|
||||||
|
deb-systemd-helper unmask mysql.service > /dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
#DEBHELPER#
|
#DEBHELPER#
|
||||||
|
|
||||||
|
@ -282,8 +282,10 @@ db_stop # in case invoke failes
|
|||||||
|
|
||||||
# If we upgrade from MySQL mysql.service may be masked, which also
|
# If we upgrade from MySQL mysql.service may be masked, which also
|
||||||
# means init.d script is disabled. Unmask mysql service explicitely.
|
# means init.d script is disabled. Unmask mysql service explicitely.
|
||||||
# Ignore exit code as command is not available everywhere.
|
# Check first that the command exists, to avoid emitting any warning messages.
|
||||||
deb-systemd-helper unmask mysql.service > /dev/null || true
|
if [ -x "$(command -v deb-systemd-helper)" ]; then
|
||||||
|
deb-systemd-helper unmask mysql.service > /dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
#DEBHELPER#
|
#DEBHELPER#
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user