pam script problem fixed

This commit is contained in:
Volkan Şahin 2016-08-12 17:19:36 +03:00
parent a124e0919f
commit 18c65ca87b
2 changed files with 7 additions and 1 deletions

2
debian/postinst vendored
View file

@ -17,7 +17,7 @@ while true; do
then then
if [ -f /etc/pam.d/common-session ] if [ -f /etc/pam.d/common-session ]
then then
cp /etc/pam.d/common-session /etc/pam.d/common-session.orig
sed -i '/pam_script.so/d' /etc/pam.d/common-session sed -i '/pam_script.so/d' /etc/pam.d/common-session
echo "session required pam_script.so" >> /etc/pam.d/common-session echo "session required pam_script.so" >> /etc/pam.d/common-session
fi fi

6
debian/postrm vendored Normal file
View file

@ -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