mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
make sure /var/lib/egroupware is only accessible by webserver
This commit is contained in:
parent
bc43d93950
commit
9ba79fb0cd
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user