install_roundcube.sh: add support for roundcubemail 1.7.x
This commit is contained in:
1 parent
4b1af1419e
commit
877e8996b0
1 file changed
+35
-10
+35
-10
@@ -295,6 +295,10 @@ do
|
||||
echo -e "\n\t\033[33m\033[1mA version number is required!\033[m\n"
|
||||
fi
|
||||
done
|
||||
# Hauptversionsnummer extrahieren (1.6 oder 1.7)
|
||||
RC_MAIN_VERSION=$(echo "$ROUNDCUBE_VERSION" | cut -d. -f1-2)
|
||||
|
||||
|
||||
echo ""
|
||||
echo -e "\033[32m--\033[m"
|
||||
echo ""
|
||||
@@ -1095,18 +1099,27 @@ if [[ -h "${WEBSITE_BASEDIR}/htdocs" ]]; then
|
||||
else
|
||||
echo_skipped
|
||||
fi
|
||||
|
||||
_failed=false
|
||||
echononl "\tCreate Symlink for DocumentRoot Directory 'htdocs'.."
|
||||
if [[ ! -h "${WEBSITE_BASEDIR}/htdocs" ]]; then
|
||||
ln -s roundcubemail-${ROUNDCUBE_VERSION} ${WEBSITE_BASEDIR}/htdocs > $log_file 2>&1
|
||||
if [[ $? -eq 0 ]]; then
|
||||
echo_ok
|
||||
else
|
||||
echo_failed
|
||||
error "$(cat $log_file)"
|
||||
if [ "$RC_MAIN_VERSION" == "1.6" ]; then
|
||||
ln -s "roundcubemail-${ROUNDCUBE_VERSION}" "${WEBSITE_BASEDIR}/htdocs" >> $log_file 2>&1
|
||||
if [[ $? -ne 0 ]]; then
|
||||
_failed=true
|
||||
fi
|
||||
else
|
||||
echo_skipped
|
||||
ln -s "roundcubemail-${ROUNDCUBE_VERSION}/public_html/" "${WEBSITE_BASEDIR}/htdocs" >> $log_file 2>&1
|
||||
if [[ $? -ne 0 ]]; then
|
||||
_failed=true
|
||||
fi
|
||||
fi
|
||||
if $_failed ; then
|
||||
echo_failed
|
||||
error "$(cat $log_file)"
|
||||
else
|
||||
echo_ok
|
||||
fi
|
||||
|
||||
|
||||
if $SKIN_LOGO_PRESENT ; then
|
||||
_failed=false
|
||||
@@ -1945,10 +1958,15 @@ else
|
||||
echo_skipped
|
||||
fi
|
||||
|
||||
if [ "$RC_MAIN_VERSION" == "1.6" ]; then
|
||||
INSTALLER_URL="https://${WEBSITE_NAME}/installer"
|
||||
else
|
||||
INSTALLER_URL="https://${WEBSITE_NAME}/installer.php"
|
||||
fi
|
||||
|
||||
info "Now browse to the intaller site and continue installation.\n$(cat <<EOF
|
||||
|
||||
Browse to site: \033[1mhttps://${WEBSITE_NAME}/installer\033[m
|
||||
Browse to site: \033[1m${INSTALLER_URL}\033[m
|
||||
|
||||
Maybe you want to change some values as follows
|
||||
|
||||
@@ -1981,7 +1999,14 @@ info "Now browse to the intaller site and continue installation.\n$(cat <<EOF
|
||||
|
||||
Display settings & user prefs:
|
||||
language...............: de_DE
|
||||
skin...................: larry
|
||||
skin...................: elastic
|
||||
|
||||
|
||||
After you've adjusted the values, save the configuration file created by the installer
|
||||
to the /tmp directory, and then copy it to the configuration directory of the Roundube
|
||||
installation:
|
||||
|
||||
\033[1;33mDcp /tmp/config.inc.php ${WEBSITE_BASEDIR}/roundcubemail-${ROUNDCUBE_VERSION}/config/\033[0m
|
||||
|
||||
EOF
|
||||
)"
|
||||
|
||||
Reference in new issue
Block a user