mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 03:52:17 +03:00
ahenkpostint add SSSD language settings
This commit is contained in:
parent
78ecc8af5f
commit
fe3469de86
2 changed files with 15 additions and 2 deletions
13
debian/ahenk.postinst
vendored
13
debian/ahenk.postinst
vendored
|
@ -13,13 +13,22 @@ if [ ! -d /etc/ahenk ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# update pardus21 sssd conf changes when update pardus from 24 to 25
|
# update pardus21 sssd conf changes when update pardus from 24 to 25
|
||||||
if [ -f /etc/ahenk/ad_info ]; then
|
if [ -d /etc/ahenk ]; then
|
||||||
|
if [ -f /etc/ahenk/ad_info ]; then
|
||||||
if [ -f /etc/sssd/sssd.conf ]; then
|
if [ -f /etc/sssd/sssd.conf ]; then
|
||||||
sed -i 's/ad_domain/ad_server/g' /etc/sssd/sssd.conf
|
sed -i 's/ad_domain/ad_server/g' /etc/sssd/sssd.conf
|
||||||
systemctl restart sssd.service
|
systemctl restart sssd.service
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -d /etc/sssd ]; then
|
||||||
|
if grep -Fxq 'LC_ALL="tr_CY.UTF-8"' /etc/default/sssd
|
||||||
|
then
|
||||||
|
:
|
||||||
|
else
|
||||||
|
echo """LC_ALL=\"tr_CY.UTF-8\"""" >> /etc/default/sssd
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
systemctl enable ahenk
|
systemctl enable ahenk
|
||||||
|
|
|
@ -155,6 +155,10 @@ class ExecuteSSSDAdAuthentication:
|
||||||
file_default_pam.close()
|
file_default_pam.close()
|
||||||
|
|
||||||
self.discover_try_counter2 = 0
|
self.discover_try_counter2 = 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
while (True):
|
while (True):
|
||||||
self.discover_try_counter2 = self.discover_try_counter2 + 1
|
self.discover_try_counter2 = self.discover_try_counter2 + 1
|
||||||
|
|
Loading…
Reference in a new issue