]> git.proxmox.com Git - lxcfs.git/blame - debian/lxcfs.postinst
bump version to 6.0.0-pve2
[lxcfs.git] / debian / lxcfs.postinst
CommitLineData
1c9d15dc
FG
1#!/bin/sh
2
3set -e
4
f0806957
TL
5#DEBHELPER#
6
1c9d15dc
FG
7case "$1" in
8 configure)
117e738a
TL
9 if test -n "$2"; then # upgrade
10 dh_action="reload-or-try-restart";
11 else
12 dh_action="start"
13 fi
14
15 unit=lxcfs.service
16 if systemctl -q is-enabled "$unit"; then
e128697a 17 systemctl --system daemon-reload >/dev/null || true
4c422ff2 18 deb-systemd-invoke $dh_action "$unit" || true
1c9d15dc
FG
19 fi
20 ;;
21
22esac
23
1c9d15dc 24exit 0