#!/bin/bash
#
#	fix permissinons on GLPI var dir
#
# ::do_not_edit::
# ::maintainer::
#
# uses kusa db definitions:
#
#	apache.user
#	apache.group
#
# run   "kusa-reconf srv-glpi"   again if you change one of them
#
user="::apache.user::"
group="::apache.group::"

echo -n "  GLPI: fixing perms on $(pwd) ... "

echo -n "files ... "
chown -R www-data:www-data .
chmod -R g+rw .

echo -n "dirs ... "
find . -type d -exec chmod 2775 {} \;

echo "ok"
exit 0
