mirror of
https://git.proxmox.com/git/lxc
synced 2025-08-17 00:53:22 +00:00

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>
37 lines
695 B
Bash
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
|