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:
parent
1586925376
commit
b39a8832c0
8
debian/lxc-pve.postinst
vendored
8
debian/lxc-pve.postinst
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user