ldapsaisie/debian/ldapsaisie.postinst

16 lines
551 B
Text
Raw Normal View History

2013-03-31 05:25:54 +02:00
#!/bin/sh
chown www-data:adm /var/tmp/ldapsaisie /var/log/ldapsaisie
2013-06-16 09:38:03 +02:00
chmod 750 /var/tmp/ldapsaisie /var/log/ldapsaisie
if test ! -L /etc/ldapsaisie/local
then
echo "Install /etc/ldapsaisie/local symbolic link"
[ -e /etc/ldapsaisie/local ] && mv -f /etc/ldapsaisie/local /etc/ldapsaisie/local.dpkg-old
ln -s /usr/local/share/ldapsaisie /etc/ldapsaisie/local
fi
if [ -f /usr/local/share/ldapsaisie/conf/config.inc.php.dpkg-move ]
then
mv /usr/local/share/ldapsaisie/conf/config.inc.php.dpkg-move /usr/local/share/ldapsaisie/conf/config.inc.php
fi