From 336cc6613a41b1503e658ae2158caaf7e9a87688 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Sun, 30 Oct 2011 14:39:11 -0400 Subject: debian/libpam0g.templates, debian/libpam0g.postinst: add a new question, libraries/restart-without-asking, that allows admins to accept the service restarts once for all so that they don't have to repeatedly say "ok". LP: #745004. --- debian/libpam0g.postinst | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'debian/libpam0g.postinst') diff --git a/debian/libpam0g.postinst b/debian/libpam0g.postinst index eca8957e..bc8a52f2 100644 --- a/debian/libpam0g.postinst +++ b/debian/libpam0g.postinst @@ -112,17 +112,22 @@ then echo "Checking init scripts..." services=$(installed_services "$check") if [ -n "$services" ]; then - db_reset libpam0g/restart-services - db_set libpam0g/restart-services "$services" - db_input critical libpam0g/restart-services || true + db_input critical libraries/restart-without-asking || true db_go || true - db_get libpam0g/restart-services + db_get libraries/restart-without-asking + if [ "$RET" != true ]; then + db_reset libpam0g/restart-services + db_set libpam0g/restart-services "$services" + db_input critical libpam0g/restart-services || true + db_go || true + db_get libpam0g/restart-services - if [ "x$RET" != "x" ] - then - services=$RET - else - services="" + if [ "x$RET" != "x" ] + then + services=$RET + else + services="" + fi fi echo if [ "$services" != "" ]; then -- cgit v1.2.3