From 4a2d2a698e61e4a6a89a642a5e8e887e17213f79 Mon Sep 17 00:00:00 2001 From: Christoph Date: Fri, 23 Sep 2022 15:05:55 +0200 Subject: [PATCH] install_roundcube.sh: some minpr changes.. --- install_roundcube.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/install_roundcube.sh b/install_roundcube.sh index 9727b92..79f72d4 100755 --- a/install_roundcube.sh +++ b/install_roundcube.sh @@ -272,6 +272,7 @@ DEFAULT_HTTP_GROUP="www-data" DEFAULT_APACHE_LOG_DIR="/var/log/apache2" DEFAULT_WEBSITE_BASEDIR="/var/www/${WEBSITE_NAME}" DEFAULT_ROUNDCUBE_TMPDIR="${DEFAULT_WEBSITE_BASEDIR}/temp" +DEFAULT_SKIN_LOGO="images/oopen-logo.png" DEFAULT_DEBIAN_APACHE_CERT_DIR="/etc/apache2" DEFAULT_APACHE_CERT_DIR="/usr/local/apache2/conf" DEFAULT_APACHE_SERVER_CERT="server-bundle.crt" @@ -296,6 +297,8 @@ HOSTNAME_SHORT=${_tmp_string%%.*} [[ -n "$ROUNDCUBE_TMPDIR" ]] || ROUNDCUBE_TMPDIR="$DEFAULT_ROUNDCUBE_TMPDIR" +[[ -n "$SKIN_LOGO" ]] || SKIN_LOGO="$DEFAULT_SKIN_LOGO" + if [[ -z "$IPV4" ]] && [[ -z "$IPV6" ]] ; then fatal "Neither an IPv4 nor an IPv6 address are given.!" else @@ -1900,6 +1903,8 @@ else echo_failed fi + + echononl "\tSet.. 'des_key', 'login_autocomplete', and more.." cat <>$WEBSITE_BASEDIR/roundcubemail-${ROUNDCUBE_VERSION}/config/config.inc.php 2> $log_file @@ -1907,6 +1912,23 @@ cat <>$WEBSITE_BASEDIR/roundcubemail-${ROUNDCUBE_VERSION}/config/config.in // Added after basic installation // ================================== +\$config['skin_logo'] = '${SKIN_LOGO}'; + + +// use this folder to store log files +// must be writeable for the user who runs PHP process (Apache user if mod_php is being used) +// This is used by the 'file' log driver. +\$config['log_dir'] = '${WEBSITE_BASEDIR}/logs'; + +// Location of temporary saved files such as attachments and cache files +// must be writeable for the user who runs PHP process (Apache user if mod_php is being used) +\$config['temp_dir'] = '${ROUNDCUBE_TMPDIR}'; + +// provide an URL where a user can get support for this Roundcube installation +// PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE! +\$config['support_url'] = '${SUPPORT_URL}'; + + // This key is used for encrypting purposes, like storing of imap password // in the session. For historical reasons it's called DES_key, but it's used // with any configured cipher_method (see below).