forked from extern/egroupware
make sure /var/lib/egroupware is only accessible by webserver
This commit is contained in:
parent
444d14401c
commit
5802b8b194
@ -33,6 +33,7 @@ then
|
|||||||
/usr/share/egroupware/doc/rpm-build/post_install.php 2>&1 | /usr/bin/tee -a $install_log
|
/usr/share/egroupware/doc/rpm-build/post_install.php 2>&1 | /usr/bin/tee -a $install_log
|
||||||
# fix ownership of files created during update
|
# fix ownership of files created during update
|
||||||
chown -R www-data /var/lib/egroupware
|
chown -R www-data /var/lib/egroupware
|
||||||
|
chmod 700 /var/lib/egroupware/
|
||||||
else
|
else
|
||||||
apache_conf=apache.conf
|
apache_conf=apache.conf
|
||||||
# Debian 9 has no more /etc/lsb-release and gives an error
|
# Debian 9 has no more /etc/lsb-release and gives an error
|
||||||
@ -96,6 +97,7 @@ then
|
|||||||
# someone wants a different setup.
|
# someone wants a different setup.
|
||||||
if [ -z "$2" ]; then
|
if [ -z "$2" ]; then
|
||||||
chown -R www-data:www-data /var/lib/egroupware/
|
chown -R www-data:www-data /var/lib/egroupware/
|
||||||
|
chmod 700 /var/lib/egroupware/
|
||||||
chmod 600 $config
|
chmod 600 $config
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user