]> git.proxmox.com Git - lxc.git/commitdiff
postinst: ignore lxc.service reload errors
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 6 Nov 2019 10:08:53 +0000 (11:08 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 6 Nov 2019 19:42:00 +0000 (20:42 +0100)
otherwise this could fail posinst execution (and thus package
installation!) on systems coming from plain Debian, or where lxc.service
is masked.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
debian/lxc-pve.postinst

index 5631b2d7ff8e093bb6ac269f15641cc46b33465e..776b0b6bf99dd947c6779525b0a1f8d9675d14a7 100644 (file)
@@ -15,7 +15,7 @@ case "$1" in
        # (to run unprivileged containers as root)
        usermod -v 100000-165535 -w 100000-165535 root
 
-       deb-systemd-invoke reload-or-try-restart lxc.service
+       deb-systemd-invoke reload-or-try-restart lxc.service >/dev/null || true
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)