ahenkpostint add SSSD language settings

This commit is contained in:
agahhulusi 2021-09-10 11:51:57 +03:00
parent 78ecc8af5f
commit fe3469de86
2 changed files with 15 additions and 2 deletions

11
debian/ahenk.postinst vendored
View file

@ -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 [ -d /etc/ahenk ]; then
if [ -f /etc/ahenk/ad_info ]; 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

View file

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