debian/cryptsetup-suspend.postinst
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | # dh_installsystemd(1) doesn't support overrides but we manually copy |
| 6 | # the snippet it would add. |
| 7 | if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ]; then |
| 8 | if [ -d /run/systemd/system ]; then |
| 9 | systemctl --system daemon-reload >/dev/null || true |
| 10 | fi |
| 11 | fi |
| 12 | |
| 13 | #DEBHELPER# |
| 14 | exit 0 |