install_roundcube.sh: some minpr changes..

This commit is contained in:
Christoph 2022-09-23 15:05:55 +02:00
parent 7b2bce7f7f
commit 4a2d2a698e

View File

@ -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 <<EOF >>$WEBSITE_BASEDIR/roundcubemail-${ROUNDCUBE_VERSION}/config/config.inc.php 2> $log_file
@ -1907,6 +1912,23 @@ cat <<EOF >>$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).