summaryrefslogtreecommitdiff
path: root/debian/libpam0g.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/libpam0g.postinst')
-rw-r--r--debian/libpam0g.postinst4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/libpam0g.postinst b/debian/libpam0g.postinst
index 23320c8f..396b35ca 100644
--- a/debian/libpam0g.postinst
+++ b/debian/libpam0g.postinst
@@ -65,9 +65,10 @@ if test -d /run/systemd/system; then
}
else # not systemd
is_service_configured() {
+ service="$1"
idl="/etc/init.d/${service}"
if [ -n "$idl" ] && [ -x $idl ]; then
-return 0
+ return 0
else
return 1
fi
@@ -111,7 +112,6 @@ fi
)
for service in $check; do
- idl="/etc/init.d/${service}"
if is_service_configured $service; then
services="$service $services"
else