diff options
-rwxr-xr-x | packaging/NetworkManager/30-winbind-systemd | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packaging/NetworkManager/30-winbind-systemd b/packaging/NetworkManager/30-winbind-systemd index af0edf9747..9db422afea 100755 --- a/packaging/NetworkManager/30-winbind-systemd +++ b/packaging/NetworkManager/30-winbind-systemd @@ -1,6 +1,6 @@ #!/bin/sh - -winbind_is_active=$(/bin/systemctl is-active winbind.service) +SYSTEMCTL=/bin/systemctl +winbind_is_active=$($SYSTEMCTL is-active winbind.service) test "${winbind_is_active}" = "active" || exit 0 winbind_offline_logon=$(testparm -s --parameter-name "winbind offline logon" 2>/dev/null) @@ -8,9 +8,9 @@ test "${winbind_offline_logon}" = "Yes" || exit 0 case "$2" in up|vpn-up) - nmb_is_active=$(/bin/systemctl is-active nmb.service) + nmb_is_active=$($SYSTEMCTL is-active nmb.service) if test "${nmb_is_active}" = "active"; then - /bin/systemctl try-restart nmb.service || : + $SYSTEMCTL try-restart nmb.service || : fi /usr/bin/smbcontrol winbind online || : ;; |