more reasonable permissions on config files
this way the webserver don't own the files (so can't change perms) yet can still read
This commit is contained in:
parent
b2949424c3
commit
b906850eb5
|
@ -24,13 +24,13 @@ case "$1" in
|
||||||
|
|
||||||
dpkg-statoverride --list /etc/roundcube/debian-db.php >/dev/null &&
|
dpkg-statoverride --list /etc/roundcube/debian-db.php >/dev/null &&
|
||||||
dpkg-statoverride --remove /etc/roundcube/debian-db.php
|
dpkg-statoverride --remove /etc/roundcube/debian-db.php
|
||||||
chown -R www-data:root /etc/roundcube/debian-db.php
|
chown root:www-data /etc/roundcube/debian-db.php
|
||||||
chmod -R 460 /etc/roundcube/debian-db.php
|
chmod 640 /etc/roundcube/debian-db.php
|
||||||
|
|
||||||
dpkg-statoverride --list /etc/roundcube/main.inc.php >/dev/null &&
|
dpkg-statoverride --list /etc/roundcube/main.inc.php >/dev/null &&
|
||||||
dpkg-statoverride --remove /etc/roundcube/main.inc.php
|
dpkg-statoverride --remove /etc/roundcube/main.inc.php
|
||||||
chown -R www-data:root /etc/roundcube/main.inc.php
|
chown root:www-data /etc/roundcube/main.inc.php
|
||||||
chmod -R 460 /etc/roundcube/main.inc.php
|
chmod 640 /etc/roundcube/main.inc.php
|
||||||
|
|
||||||
dpkg-statoverride --list /var/log/roundcube >/dev/null &&
|
dpkg-statoverride --list /var/log/roundcube >/dev/null &&
|
||||||
dpkg-statoverride --remove /var/log/roundcube
|
dpkg-statoverride --remove /var/log/roundcube
|
||||||
|
|
Loading…
Reference in New Issue