]>
Commit | Line | Data |
---|---|---|
afa3c2ae DM |
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 | |
d3bbd2a2 WB |
17 | |
18 | deb-systemd-invoke reload-or-try-restart lxc.service | |
afa3c2ae DM |
19 | ;; |
20 | ||
21 | abort-upgrade|abort-remove|abort-deconfigure) | |
22 | ;; | |
23 | ||
24 | *) | |
25 | echo "postinst called with unknown argument \`$1'" >&2 | |
26 | exit 1 | |
27 | ;; | |
28 | esac | |
29 | ||
30 | # dh_installdeb will replace this with shell code automatically | |
31 | # generated by other debhelper scripts. | |
32 | ||
33 | #DEBHELPER# | |
34 | ||
35 | exit 0 |