]> git.proxmox.com Git - lxc.git/blame - debian/lxc-pve.postinst
bump version to 6.0.0-1
[lxc.git] / debian / lxc-pve.postinst
CommitLineData
afa3c2ae
DM
1#!/bin/sh
2# postinst script for lxc
3#
4# see: dh_installdeb(1)
5
6set -e
7
8# for details, see http://www.debian.org/doc/debian-policy/ or
9# the debian-policy package
10
11case "$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 ;;
26esac
27
28# dh_installdeb will replace this with shell code automatically
29# generated by other debhelper scripts.
30
31#DEBHELPER#
32
b39a8832 33if [ "$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
37fi
38
afa3c2ae 39exit 0