mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 01:32:16 +03:00
Ahenk will be login automatically when session opens and also logout automatically when session closes
This commit is contained in:
parent
7f306bbc94
commit
25afb824c1
3 changed files with 23 additions and 2 deletions
1
debian/ahenk.install
vendored
1
debian/ahenk.install
vendored
|
@ -1,3 +1,4 @@
|
|||
opt/ /
|
||||
etc/ /
|
||||
lib/ /
|
||||
usr/ /
|
||||
|
|
2
debian/control
vendored
2
debian/control
vendored
|
@ -8,5 +8,5 @@ Homepage: http://www.liderahenk.org.tr
|
|||
|
||||
Package: ahenk
|
||||
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.
|
||||
|
|
22
debian/postinst
vendored
22
debian/postinst
vendored
|
@ -8,7 +8,27 @@ set -e
|
|||
|
||||
case "$1" in
|
||||
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 enable ahenk.service
|
||||
|
||||
|
|
Loading…
Reference in a new issue