lxc/debian/lxc-pve.postinst
Wolfgang Bumiller 200de80309 d/postinst: reload service files
Otherwise the upgrade from -3 to -4 issues the
reload-or-try-restart on the old service which has no
ExecReload yet.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-08-07 10:39:57 +02:00

37 lines
695 B
Bash

#!/bin/sh
# postinst script for lxc
#
# see: dh_installdeb(1)
set -e
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
configure)
# create subuid/subgui map for root
# (to run unprivileged containers as root)
usermod -v 100000-165535 -w 100000-165535 root
/bin/systemctl daemon-reload
deb-systemd-invoke reload-or-try-restart lxc.service
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0