1
0
Fork 0
mirror of https://gitlab.easter-eggs.com/ee/ldapsaisie.git synced 2024-12-23 08:53:47 +01:00
ldapsaisie/debian/ldapsaisie.postinst

20 lines
514 B
Bash

#!/bin/sh
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
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
# Purge Smarty templates cache
rm -f /var/cache/ldapsaisie/*.php
;;
esac