lxc/debian/lxc-pve.postinst
Wolfgang Bumiller 0b34d2a800 use dh_apparmor for the lxc-containers profile
for consistency, this also ignores profile-reload errors
(again so that we can install it in a chroot without
unnecessary installation failures)
2016-08-05 11:07:33 +02:00

34 lines
610 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
;;
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