]> git.proxmox.com Git - lxc.git/blob - debian/lxc-pve.postinst
use dh_apparmor for the lxc-containers profile
[lxc.git] / debian / lxc-pve.postinst
1 #!/bin/sh
2 # postinst script for lxc
3 #
4 # see: dh_installdeb(1)
5
6 set -e
7
8 # for details, see http://www.debian.org/doc/debian-policy/ or
9 # the debian-policy package
10
11 case "$1" in
12 configure)
13
14 # create subuid/subgui map for root
15 # (to run unprivileged containers as root)
16 usermod -v 100000-165535 -w 100000-165535 root
17 ;;
18
19 abort-upgrade|abort-remove|abort-deconfigure)
20 ;;
21
22 *)
23 echo "postinst called with unknown argument \`$1'" >&2
24 exit 1
25 ;;
26 esac
27
28 # dh_installdeb will replace this with shell code automatically
29 # generated by other debhelper scripts.
30
31 #DEBHELPER#
32
33 exit 0