2013-03-31 05:25:54 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2018-01-08 20:24:21 +01:00
|
|
|
case "$1" in
|
|
|
|
configure)
|
|
|
|
if test "$(stat --format %u:%g /var/cache/ldapsaisie)" = "0:0"
|
|
|
|
then
|
|
|
|
chown www-data:adm /var/cache/ldapsaisie /var/log/ldapsaisie
|
|
|
|
chmod 750 /var/cache/ldapsaisie /var/log/ldapsaisie
|
|
|
|
fi
|
|
|
|
break
|
2013-06-28 12:08:02 +02:00
|
|
|
|
2018-01-08 20:24:21 +01:00
|
|
|
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
|
2020-06-04 11:45:51 +02:00
|
|
|
|
|
|
|
# Purge Smarty templates cache
|
|
|
|
rm -f /var/cache/ldapsaisie/*.php
|
2018-01-08 20:24:21 +01:00
|
|
|
;;
|
|
|
|
esac
|