]>
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 | |
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 | ||
b39a8832 | 33 | if [ "$1" = "configure" ] ; then |
f101bb57 | 34 | if [ -d /run/systemd/system ]; then |
b39a8832 FG |
35 | deb-systemd-invoke reload-or-try-restart lxc.service >/dev/null || true |
36 | fi | |
37 | fi | |
38 | ||
afa3c2ae | 39 | exit 0 |