summaryrefslogtreecommitdiffstats
path: root/debian/cryptsetup-suspend.postinst
blob: daabad55f2fc812924fcb6a35b6c06095fad36fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -e

# dh_installsystemd(1) doesn't support overrides but we manually copy
# the snippet it would add.
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ]; then
    if [ -d /run/systemd/system ]; then
        systemctl --system daemon-reload >/dev/null || true
    fi
fi

#DEBHELPER#
exit 0