diff options
author | Fabian Grünbichler <f.gruenbichler@proxmox.com> | 2018-10-28 15:08:48 +0000 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2018-10-28 15:39:38 +0000 |
commit | 9f02cb6fae8a822092ef504f46cbdd0a4f5547c2 (patch) | |
tree | 7ebd3ca24c6e32d2cb3237d58a6a0a5c0f2c56cc /autoscripts | |
parent | c4a06ca230ad87da093da8c8cfd68bdb41b0ccdf (diff) | |
download | debhelper-9f02cb6fae8a822092ef504f46cbdd0a4f5547c2.tar.gz |
dh_installsystemd: Refactor to suport new maintscripts actions easier
Extracted from MR !14.
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'autoscripts')
-rw-r--r-- | autoscripts/postinst-systemd-restart | 2 | ||||
-rw-r--r-- | autoscripts/postinst-systemd-restartnostart | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/autoscripts/postinst-systemd-restart b/autoscripts/postinst-systemd-restart index 048e9685..8155bc05 100644 --- a/autoscripts/postinst-systemd-restart +++ b/autoscripts/postinst-systemd-restart @@ -2,7 +2,7 @@ if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-decon if [ -d /run/systemd/system ]; then systemctl --system daemon-reload >/dev/null || true if [ -n "$2" ]; then - _dh_action=restart + _dh_action=#RESTART_ACTION# else _dh_action=start fi diff --git a/autoscripts/postinst-systemd-restartnostart b/autoscripts/postinst-systemd-restartnostart index 8ac28fb3..d3f199cf 100644 --- a/autoscripts/postinst-systemd-restartnostart +++ b/autoscripts/postinst-systemd-restartnostart @@ -2,7 +2,7 @@ if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-decon if [ -d /run/systemd/system ]; then systemctl --system daemon-reload >/dev/null || true if [ -n "$2" ]; then - deb-systemd-invoke try-restart #UNITFILES# >/dev/null || true + deb-systemd-invoke #RESTART_ACTION# #UNITFILES# >/dev/null || true fi fi fi |