Ahenk/debian/ahenk.postinst

21 lines
476 B
Text
Raw Normal View History

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
if [[ ! -d /etc/ahenk ]]; then
2020-04-06 18:10:41 +03:00
mkdir -p /etc/ahenk
cp -rf /tmp/ahenk/* /etc/ahenk
# 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
fi
2020-04-06 18:10:41 +03:00
fi
systemctl enable ahenk
systemctl start ahenk