summaryrefslogtreecommitdiff
path: root/autoscripts/postrm-systemd-reload-only
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2021-03-21 09:56:39 +0000
committerNiels Thykier <niels@thykier.net>2021-03-21 09:56:39 +0000
commit3ee30b921e6441dd6a740609fe14ceafcb9ea06a (patch)
tree50bba44ae6b1c4feb642e108c300a657edffbd51 /autoscripts/postrm-systemd-reload-only
parent419b0ad43eab7ef7bb3abf261577282cabcc3f78 (diff)
autoscripts: Reorder conditions to avoid redundant stats
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'autoscripts/postrm-systemd-reload-only')
-rw-r--r--autoscripts/postrm-systemd-reload-only2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoscripts/postrm-systemd-reload-only b/autoscripts/postrm-systemd-reload-only
index c251c348..dac15c30 100644
--- a/autoscripts/postrm-systemd-reload-only
+++ b/autoscripts/postrm-systemd-reload-only
@@ -1,3 +1,3 @@
-if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
+if [ "$1" = remove ] && [ -d /run/systemd/system ] ; then
systemctl --system daemon-reload >/dev/null || true
fi