summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorMark Hindley <mark@hindley.org.uk>2021-03-15 12:52:49 -0400
committerSteve Langasek <steve.langasek@canonical.com>2021-09-15 17:52:38 -0700
commitd5f1940bddfa1da0d0f4191cc580232cd624790b (patch)
treee96d056fa065557e6b76e75c4f4f196fc420e2ee /debian
parente11e4dcc04b3c0bf1878c00f6681f7b7cfd461c6 (diff)
debian/libpam0g.postinst: code review fixes
* Fix indentation * set service so argument to function is used * remove dead code
Diffstat (limited to 'debian')
-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