Browse Source

Fix systemd check in postinst. Closes: #829418

Christoph Biedl 5 years ago
parent
commit
e7fdd76983
1 changed files with 2 additions and 2 deletions
  1. 2 2
      debian/pptpd.postinst

+ 2 - 2
debian/pptpd.postinst

@@ -5,8 +5,8 @@ set -e
 case "$1" in
 configure)
     # load the module configured in /etc/modules-load.d/pptpd.conf
-    if [ -x "$(which systemctl || true)" ] ; then
-        systemctl restart systemd-modules-load
+    if [ -d /run/systemd/system ] ; then
+        deb-systemd-invoke restart systemd-modules-load.service
     else
         modprobe nf_nat_pptp 2>/dev/null || true
     fi