2020-04-06 18:10:41 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
#mkdir -p /usr/share/ahenk/plugins
|
|
|
|
|
|
|
|
# update ahenk from 1.0.0-6 to 1.0.0-7
|
2021-09-08 14:59:51 +03:00
|
|
|
if [ ! -d /etc/ahenk ]; then
|
|
|
|
|
2020-04-06 18:10:41 +03:00
|
|
|
mkdir -p /etc/ahenk
|
|
|
|
cp -rf /tmp/ahenk/* /etc/ahenk
|
2021-09-08 14:59:51 +03:00
|
|
|
|
|
|
|
fi
|
|
|
|
|
2021-09-07 16:25:05 +03:00
|
|
|
# update pardus21 sssd conf changes when update pardus from 24 to 25
|
2021-09-10 11:51:57 +03:00
|
|
|
if [ -d /etc/ahenk ]; then
|
2021-09-10 16:29:33 +03:00
|
|
|
if [ -f /etc/default/sssd ]; then
|
|
|
|
if ! grep -Fxq 'LC_ALL="tr_CY.UTF-8"' /etc/default/sssd
|
|
|
|
then
|
|
|
|
echo 'LC_ALL="tr_CY.UTF-8"' >> /etc/default/sssd
|
|
|
|
systemctl restart sssd.service
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2021-09-10 11:51:57 +03:00
|
|
|
if [ -f /etc/ahenk/ad_info ]; then
|
2021-09-08 14:59:51 +03:00
|
|
|
if [ -f /etc/sssd/sssd.conf ]; then
|
|
|
|
sed -i 's/ad_domain/ad_server/g' /etc/sssd/sssd.conf
|
|
|
|
systemctl restart sssd.service
|
2021-09-07 16:25:05 +03:00
|
|
|
fi
|
2021-09-10 11:51:57 +03:00
|
|
|
fi
|
|
|
|
fi
|
2021-09-08 14:59:51 +03:00
|
|
|
|
2020-04-06 18:10:41 +03:00
|
|
|
systemctl enable ahenk
|
|
|
|
systemctl start ahenk
|