From 18c65ca87bd121fe08fc8e62e45607ab02569de5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Volkan=20=C5=9Eahin?= Date: Fri, 12 Aug 2016 17:19:36 +0300 Subject: [PATCH] pam script problem fixed --- debian/postinst | 2 +- debian/postrm | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 debian/postrm diff --git a/debian/postinst b/debian/postinst index c0b3d7a..13083c0 100644 --- a/debian/postinst +++ b/debian/postinst @@ -17,7 +17,7 @@ while true; do then if [ -f /etc/pam.d/common-session ] then - + cp /etc/pam.d/common-session /etc/pam.d/common-session.orig sed -i '/pam_script.so/d' /etc/pam.d/common-session echo "session required pam_script.so" >> /etc/pam.d/common-session fi diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 0000000..a55d27a --- /dev/null +++ b/debian/postrm @@ -0,0 +1,6 @@ +#!/bin/sh +# postrm script for ahenk +# + +cp /etc/pam.d/common-session /etc/pam.d/common-session.before_remove_ahenk +cp /etc/pam.d/common-session.orig /etc/pam.d/common-session