From ec8d8b1344c16db9d3bea95b261f247b1cfac96d Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Thu, 27 Mar 2014 15:04:30 +0000 Subject: [PATCH] Premier jet pour ROundcube avec l'utilisateur apache normal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Résoud les pb d'upgrade et de cron --- .gitattributes | 1 - roundcube/roundcube-install | 18 +---- roundcube/templates/apache2/roundcube.conf | 70 +++++++++---------- .../templates/logrotate.d/roundcube-core | 15 ---- 4 files changed, 36 insertions(+), 68 deletions(-) delete mode 100644 roundcube/templates/logrotate.d/roundcube-core diff --git a/.gitattributes b/.gitattributes index a57a8bcb..5cdc900d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -615,7 +615,6 @@ roundcube/class/m_roundcube.php -text roundcube/roundcube-install -text roundcube/roundcube_alternc_logo.png -text roundcube/templates/apache2/roundcube.conf -text -roundcube/templates/logrotate.d/roundcube-core -text roundcube/templates/roundcube/main.inc.php -text roundcube/templates/roundcube/plugins/managesieve/config.inc.php -text roundcube/templates/roundcube/plugins/password/config.inc.php -text diff --git a/roundcube/roundcube-install b/roundcube/roundcube-install index f2613a8c..de12c6c9 100644 --- a/roundcube/roundcube-install +++ b/roundcube/roundcube-install @@ -28,7 +28,7 @@ then # cp -f /etc/alternc/templates/roundcube/avelsieve-config.php /etc/alternc/templates/roundcube/apache.conf /etc/roundcube/ # cp -f /etc/alternc/templates/javascript-common/javascript-common.conf /etc/javascript-common/ - LOGIN="2000_roundcube" + LOGIN="0000_roundcube" PASSWORD="`perl -e 'print map{("a".."z","A".."Z",0..9)[int(rand(62))]}(1..10)'`" DESKEY="`perl -e 'print map{("a".."z","A".."Z",0..9)[int(rand(62))]}(1..24)'`" @@ -40,7 +40,6 @@ then # Configuration template location TEMPLATE_DIR="/etc/alternc/templates" CONFIG_FILES="etc/roundcube/main.inc.php etc/roundcube/plugins/password/config.inc.php etc/roundcube/plugins/managesieve/config.inc.php" - LOGROTATE_FILES="etc/logrotate.d/roundcube-core" cat > $SED_SCRIPT < /$file - fi - done - echo " Done" . /usr/lib/alternc/functions.sh @@ -99,10 +90,3 @@ EOF fi -#This is necessary because upgrading roundcube from 7.1 to 7.2 changes this setting -if [ "$1" = "end" ]; then - chown alternc-roundcube:root /etc/roundcube/main.inc.php -fi - - - diff --git a/roundcube/templates/apache2/roundcube.conf b/roundcube/templates/apache2/roundcube.conf index 1f6b46a5..cf762418 100644 --- a/roundcube/templates/apache2/roundcube.conf +++ b/roundcube/templates/apache2/roundcube.conf @@ -1,46 +1,46 @@ ServerName %%fqdn%% - AssignUserId alternc-roundcube nogroup - SetEnv LOGIN "%%UID%%-%%LOGIN%%" + AssignUserId www-data www-data + SetEnv LOGIN "0000-roundcube" DocumentRoot /var/lib/roundcube -# Access to tinymce files - - Options Indexes MultiViews FollowSymLinks - AllowOverride None - Order allow,deny - allow from all - - - - Options +FollowSymLinks - # This is needed to parse /var/lib/roundcube/.htaccess. See its - # content before setting AllowOverride to None. - AllowOverride All - order allow,deny - allow from all - - -# Protecting basic directories: - - Options -FollowSymLinks + # Access to tinymce files + + Options Indexes MultiViews FollowSymLinks AllowOverride None - + Order allow,deny + allow from all + - - Options -FollowSymLinks - AllowOverride None - Order allow,deny - Deny from all - + + Options +FollowSymLinks + # This is needed to parse /var/lib/roundcube/.htaccess. See its + # content before setting AllowOverride to None. + AllowOverride All + order allow,deny + allow from all + - - Options -FollowSymLinks - AllowOverride None - Order allow,deny - Deny from all - + # Protecting basic directories: + + Options -FollowSymLinks + AllowOverride None + + + + Options -FollowSymLinks + AllowOverride None + Order allow,deny + Deny from all + + + + Options -FollowSymLinks + AllowOverride None + Order allow,deny + Deny from all + Alias /javascript /usr/share/javascript/ diff --git a/roundcube/templates/logrotate.d/roundcube-core b/roundcube/templates/logrotate.d/roundcube-core deleted file mode 100644 index c5a9e8f6..00000000 --- a/roundcube/templates/logrotate.d/roundcube-core +++ /dev/null @@ -1,15 +0,0 @@ -###### -# Configuration file of Roundcube's logrotate for AlternC -# -# /!\ WARNING /!\ Do not edit this file, edit the one in -# /etc/alternc/templates/logrotate.d/ and launch alternc.install again. -###### - -/var/log/roundcube/password /var/log/roundcube/errors /var/log/roundcube/sendmail /var/log/roundcube/userlogins { - create 0640 alternc-roundcube root - compress - missingok - notifempty - rotate 52 - weekly -}