fixing roundcube
This commit is contained in:
parent
b6462b87c7
commit
bc951b965e
|
@ -15,25 +15,26 @@ case "$1" in
|
||||||
if ! getent passwd alternc-roundcube; then
|
if ! getent passwd alternc-roundcube; then
|
||||||
useradd -g nogroup -u 1996 alternc-roundcube -d /usr/share/roundcube
|
useradd -g nogroup -u 1996 alternc-roundcube -d /usr/share/roundcube
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dpkg-statoverride --list /var/lib/roundcube/temp >/dev/null ||
|
# removed from 3.1 & 3.2 :
|
||||||
dpkg-statoverride --add alternc-roundcube root 0750 /var/lib/roundcube/temp
|
dpkg-statoverride --list /var/lib/roundcube/temp >/dev/null &&
|
||||||
chown -R alternc-roundcube:root /var/lib/roundcube/temp
|
dpkg-statoverride --remove alternc-roundcube root 0750 /var/lib/roundcube/temp
|
||||||
|
chown -R www-data:root /var/lib/roundcube/temp
|
||||||
chmod -R 750 /var/lib/roundcube/temp
|
chmod -R 750 /var/lib/roundcube/temp
|
||||||
|
|
||||||
dpkg-statoverride --list /etc/roundcube/debian-db.php >/dev/null ||
|
dpkg-statoverride --list /etc/roundcube/debian-db.php >/dev/null &&
|
||||||
dpkg-statoverride --add alternc-roundcube root 0460 /etc/roundcube/debian-db.php
|
dpkg-statoverride --remove alternc-roundcube root 0460 /etc/roundcube/debian-db.php
|
||||||
chown -R alternc-roundcube:root /etc/roundcube/debian-db.php
|
chown -R alternc-roundcube:root /etc/roundcube/debian-db.php
|
||||||
chmod -R 460 /etc/roundcube/debian-db.php
|
chmod -R 460 /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 --add alternc-roundcube root 0460 /etc/roundcube/main.inc.php
|
dpkg-statoverride --remove alternc-roundcube root 0460 /etc/roundcube/main.inc.php
|
||||||
chown -R alternc-roundcube:root /etc/roundcube/main.inc.php
|
chown -R www-data:root /etc/roundcube/main.inc.php
|
||||||
chmod -R 460 /etc/roundcube/main.inc.php
|
chmod -R 460 /etc/roundcube/main.inc.php
|
||||||
|
|
||||||
dpkg-statoverride --list /var/log/roundcube >/dev/null ||
|
dpkg-statoverride --list /var/log/roundcube >/dev/null &&
|
||||||
dpkg-statoverride --add alternc-roundcube root 0750 /var/log/roundcube
|
dpkg-statoverride --remove alternc-roundcube root 0750 /var/log/roundcube
|
||||||
chown -R alternc-roundcube:root /var/log/roundcube
|
chown -R www-data:root /var/log/roundcube
|
||||||
chmod -R 750 /var/log/roundcube
|
chmod -R 750 /var/log/roundcube
|
||||||
|
|
||||||
echo "**********************************************"
|
echo "**********************************************"
|
||||||
|
|
Loading…
Reference in New Issue