mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 03:52:17 +03:00
ahenk postint fixed
This commit is contained in:
parent
a8e33f640c
commit
7880d5658b
1 changed files with 11 additions and 5 deletions
16
debian/ahenk.postinst
vendored
16
debian/ahenk.postinst
vendored
|
@ -5,15 +5,21 @@ set -e
|
|||
#mkdir -p /usr/share/ahenk/plugins
|
||||
|
||||
# update ahenk from 1.0.0-6 to 1.0.0-7
|
||||
if [[ ! -d /etc/ahenk ]]; then
|
||||
if [ ! -d /etc/ahenk ]; then
|
||||
|
||||
mkdir -p /etc/ahenk
|
||||
cp -rf /tmp/ahenk/* /etc/ahenk
|
||||
|
||||
fi
|
||||
|
||||
# update pardus21 sssd conf changes when update pardus from 24 to 25
|
||||
if [[ -f /etc/ahenk/ad_info ]]; then
|
||||
if [[ -f /etc/sssd/sssd.conf ]]; then
|
||||
sed -i 's/ad_domain/ad_server/g' /etc/sssd/sssd.conf
|
||||
fi
|
||||
if [ -f /etc/ahenk/ad_info ]; then
|
||||
|
||||
if [ -f /etc/sssd/sssd.conf ]; then
|
||||
sed -i 's/ad_domain/ad_server/g' /etc/sssd/sssd.conf
|
||||
systemctl restart sssd.service
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
systemctl enable ahenk
|
||||
|
|
Loading…
Reference in a new issue