5
0
mirror of git://git.proxmox.com/git/lxc.git synced 2025-03-16 10:50:38 +03:00

postinst: reload/restart lxc.service later

since the debhelper-generated default enabling should come before we
attempt to start/reload/restart it.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2019-11-06 11:08:54 +01:00 committed by Thomas Lamprecht
parent 1586925376
commit b39a8832c0

View File

@ -14,8 +14,6 @@ case "$1" in
# create subuid/subgui map for root
# (to run unprivileged containers as root)
usermod -v 100000-165535 -w 100000-165535 root
deb-systemd-invoke reload-or-try-restart lxc.service >/dev/null || true
;;
abort-upgrade|abort-remove|abort-deconfigure)
@ -32,4 +30,10 @@ esac
#DEBHELPER#
if [ "$1" = "configure" ] ; then
if [ -d /run/systemd/system]; then
deb-systemd-invoke reload-or-try-restart lxc.service >/dev/null || true
fi
fi
exit 0