Merge branch '285-roundcube_webmail_access' into pu

This commit is contained in:
Kienan Stewart 2018-07-12 12:22:42 -04:00
commit 354b7f0709
3 changed files with 12 additions and 19 deletions

View File

@ -11,11 +11,6 @@ LOGROTATE="/etc/logrotate.d/roundcube-core"
case "$1" in case "$1" in
configure) configure)
# add alternc-roundcube user for php-itk special rights
if ! getent passwd alternc-roundcube; then
useradd -g nogroup -u 1996 alternc-roundcube -d /usr/share/roundcube
fi
# removed from 3.1 & 3.2 : # removed from 3.1 & 3.2 :
dpkg-statoverride --list /var/lib/roundcube/temp >/dev/null && dpkg-statoverride --list /var/lib/roundcube/temp >/dev/null &&
dpkg-statoverride --remove /var/lib/roundcube/temp dpkg-statoverride --remove /var/lib/roundcube/temp

View File

@ -81,9 +81,8 @@ EOF
fi fi
if [ "$1" = "end" ]; then if [ "$1" = "end" ]; then
# This is necessary because upgrading roundcube from 7.1 to 7.2 changes this setting # Roundcube vhosts run as www-data instead of alternc-roundcube now.
chown alternc-roundcube:root /etc/roundcube/config.inc.php # Ensure the configuration is owned by the appropriate user.
# In case owner is reset to www-data chown www-data:root /etc/roundcube/config.inc.php
chown alternc-roundcube:nogroup /var/lib/roundcube/temp chown www-data:nogroup /var/lib/roundcube/temp
fi fi

View File

@ -20,9 +20,9 @@
# Access to tinymce files # Access to tinymce files
<Directory "/usr/share/tinymce/www/"> <Directory "/usr/share/tinymce/www/">
Options +Indexes +MultiViews +FollowSymLinks Options +Indexes +MultiViews +FollowSymLinks
AllowOverride None AllowOverride None
Require all granted Require all granted
</Directory> </Directory>
<Directory /var/lib/roundcube/> <Directory /var/lib/roundcube/>
@ -37,27 +37,26 @@
<Directory /var/lib/roundcube/config> <Directory /var/lib/roundcube/config>
Options -FollowSymLinks Options -FollowSymLinks
AllowOverride None AllowOverride None
Require all denied
</Directory> </Directory>
<Directory /var/lib/roundcube/temp> <Directory /var/lib/roundcube/temp>
Options -FollowSymLinks Options -FollowSymLinks
AllowOverride None AllowOverride None
Order allow,deny Require all denied
Deny from all
</Directory> </Directory>
<Directory /var/lib/roundcube/logs> <Directory /var/lib/roundcube/logs>
Options -FollowSymLinks Options -FollowSymLinks
AllowOverride None AllowOverride None
Order allow,deny Require all denied
Deny from all
</Directory> </Directory>
Alias /javascript /usr/share/javascript/ Alias /javascript /usr/share/javascript/
<Directory "/usr/share/javascript/"> <Directory "/usr/share/javascript/">
Options +FollowSymLinks +MultiViews Options +FollowSymLinks +MultiViews
Require all granted Require all granted
</Directory> </Directory>
SSLEngine On SSLEngine On