Ahenk will be login automatically when session opens and also logout automatically when session closes

This commit is contained in:
cemrealpsoy 2016-06-17 18:21:24 +03:00
parent 7f306bbc94
commit 25afb824c1
3 changed files with 23 additions and 2 deletions

View file

@ -1,3 +1,4 @@
opt/ / opt/ /
etc/ / etc/ /
lib/ / lib/ /
usr/ /

2
debian/control vendored
View file

@ -8,5 +8,5 @@ Homepage: http://www.liderahenk.org.tr
Package: ahenk Package: ahenk
Architecture: any Architecture: any
Depends:python3 (>= 3), cython, libidn11, libidn11-dev, slixmpp, python3-dev, python3-pip, libffi-dev, libssl-dev, python3-paramiko, python3-cpuinfo, python3-psutil (>= 4) Depends:python3 (>= 3), cython, libidn11, libidn11-dev, slixmpp, python3-dev, python3-pip, libffi-dev, libssl-dev, python3-paramiko, python3-cpuinfo, python3-psutil (>= 4), libpam-script
Description: Lider Ahenk is an open source project which provides solutions to manage, monitor and audit unlimited number of different systems and users on a network. Description: Lider Ahenk is an open source project which provides solutions to manage, monitor and audit unlimited number of different systems and users on a network.

22
debian/postinst vendored
View file

@ -8,7 +8,27 @@ set -e
case "$1" in case "$1" in
configure) configure)
while true; do
read -p "If any 'pam' configuration exists, it will be gone.Do you want to continue?" yn
case $yn in
[Yy]* )
if [ -d /etc/pam.d ]
then
if [ -f /etc/pam.d/common-session ]
then
sed -i '/pam_script.so/d' /etc/pam.d/common-session
echo "session required pam_script.so" >> /etc/pam.d/common-session
fi
fi
break;;
[Nn]* ) exit;;
* ) echo "Please answer y(yes) or n(no).";;
esac
done
systemctl --system daemon-reload systemctl --system daemon-reload
systemctl enable ahenk.service systemctl enable ahenk.service