mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-10 12:33:15 +01:00
Fix /var/cache/ldapsaisie rights only if not changed
Fix /var/cache/ldapsaisie rights only if it own by root:root to allow changed by user (for instance, in case of php-fpm use with a custom user/group).
This commit is contained in:
parent
d05a1f7404
commit
9751771985
1 changed files with 14 additions and 6 deletions
12
debian/ldapsaisie.postinst
vendored
12
debian/ldapsaisie.postinst
vendored
|
@ -1,9 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
chown www-data:adm /var/tmp/ldapsaisie /var/log/ldapsaisie
|
||||
chmod 750 /var/tmp/ldapsaisie /var/log/ldapsaisie
|
||||
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
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue