upgrade_roundcube.sh: Allow upgrading to the even installed version.

This commit is contained in:
2026-07-03 17:42:59 +02:00
parent d60cb62d8f
commit 5a7e79d8c4
+6
View File
@@ -296,6 +296,12 @@ DEFAULT_WEBSITE_BASEDIR="/var/www/${WEBSITE_NAME}"
[[ -n "$WEBSITE_BASEDIR" ]] || WEBSITE_BASEDIR=$DEFAULT_WEBSITE_BASEDIR [[ -n "$WEBSITE_BASEDIR" ]] || WEBSITE_BASEDIR=$DEFAULT_WEBSITE_BASEDIR
CUR_INSTALL_DIR="$(realpath "${WEBSITE_BASEDIR}/htdocs")" CUR_INSTALL_DIR="$(realpath "${WEBSITE_BASEDIR}/htdocs")"
# For Roundcube 1.7.x the symlink points to roundcubemail-x.y.z/public_html/
# We need the parent roundcubemail directory, not public_html
if [[ "$(basename "$CUR_INSTALL_DIR")" = "public_html" ]]; then
CUR_INSTALL_DIR="$(dirname "$CUR_INSTALL_DIR")"
fi
if [[ ! -d "$CUR_INSTALL_DIR" ]] ; then if [[ ! -d "$CUR_INSTALL_DIR" ]] ; then
fatal "No current installation of roundcube found!" fatal "No current installation of roundcube found!"
fi fi