make sure /var/lib/egroupware is only accessible by webserver

This commit is contained in:
Ralf Becker 2018-06-09 10:05:44 +02:00
parent bc43d93950
commit 9ba79fb0cd

View File

@ -33,6 +33,7 @@ then
/usr/share/egroupware/doc/rpm-build/post_install.php 2>&1 | /usr/bin/tee -a $install_log
# fix ownership of files created during update
chown -R www-data /var/lib/egroupware
chmod 700 /var/lib/egroupware/
else
apache_conf=apache.conf
# Debian 9 has no more /etc/lsb-release and gives an error
@ -96,6 +97,7 @@ then
# someone wants a different setup.
if [ -z "$2" ]; then
chown -R www-data:www-data /var/lib/egroupware/
chmod 700 /var/lib/egroupware/
chmod 600 $config
fi