summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autoscripts/postinst-init-tmpfiles2
-rw-r--r--autoscripts/postinst-sysusers2
2 files changed, 2 insertions, 2 deletions
diff --git a/autoscripts/postinst-init-tmpfiles b/autoscripts/postinst-init-tmpfiles
index f56f3f97..d6bf0de1 100644
--- a/autoscripts/postinst-init-tmpfiles
+++ b/autoscripts/postinst-init-tmpfiles
@@ -1,3 +1,3 @@
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
- systemd-tmpfiles --root="$DPKG_ROOT/" --create #TMPFILES# >/dev/null || true
+ systemd-tmpfiles ${DPKG_ROOT:+--root="$DPKG_ROOT"} --create #TMPFILES# >/dev/null || true
fi
diff --git a/autoscripts/postinst-sysusers b/autoscripts/postinst-sysusers
index ea472946..fdd27d6d 100644
--- a/autoscripts/postinst-sysusers
+++ b/autoscripts/postinst-sysusers
@@ -1,3 +1,3 @@
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
- systemd-sysusers --root="${DPKG_ROOT}/" #CONFILE_BASENAME#
+ systemd-sysusers ${DPKG_ROOT:+--root="$DPKG_ROOT"} #CONFILE_BASENAME#
fi