install_roundcube.sh: add support for roundcubemail 1.7.x
This commit is contained in:
1 parent
4b1af1419e
commit
877e8996b0
1 file changed
+33
-8
+33
-8
@@ -295,6 +295,10 @@ do
|
|||||||
echo -e "\n\t\033[33m\033[1mA version number is required!\033[m\n"
|
echo -e "\n\t\033[33m\033[1mA version number is required!\033[m\n"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
# Hauptversionsnummer extrahieren (1.6 oder 1.7)
|
||||||
|
RC_MAIN_VERSION=$(echo "$ROUNDCUBE_VERSION" | cut -d. -f1-2)
|
||||||
|
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "\033[32m--\033[m"
|
echo -e "\033[32m--\033[m"
|
||||||
echo ""
|
echo ""
|
||||||
@@ -1095,19 +1099,28 @@ if [[ -h "${WEBSITE_BASEDIR}/htdocs" ]]; then
|
|||||||
else
|
else
|
||||||
echo_skipped
|
echo_skipped
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
_failed=false
|
||||||
echononl "\tCreate Symlink for DocumentRoot Directory 'htdocs'.."
|
echononl "\tCreate Symlink for DocumentRoot Directory 'htdocs'.."
|
||||||
if [[ ! -h "${WEBSITE_BASEDIR}/htdocs" ]]; then
|
if [ "$RC_MAIN_VERSION" == "1.6" ]; then
|
||||||
ln -s roundcubemail-${ROUNDCUBE_VERSION} ${WEBSITE_BASEDIR}/htdocs > $log_file 2>&1
|
ln -s "roundcubemail-${ROUNDCUBE_VERSION}" "${WEBSITE_BASEDIR}/htdocs" >> $log_file 2>&1
|
||||||
if [[ $? -eq 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
echo_ok
|
_failed=true
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
|
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
|
echo_failed
|
||||||
error "$(cat $log_file)"
|
error "$(cat $log_file)"
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
echo_skipped
|
echo_ok
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if $SKIN_LOGO_PRESENT ; then
|
if $SKIN_LOGO_PRESENT ; then
|
||||||
_failed=false
|
_failed=false
|
||||||
echononl "\tRestore logo '$SKIN_LOGO_FILE'"
|
echononl "\tRestore logo '$SKIN_LOGO_FILE'"
|
||||||
@@ -1945,10 +1958,15 @@ else
|
|||||||
echo_skipped
|
echo_skipped
|
||||||
fi
|
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
|
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
|
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:
|
Display settings & user prefs:
|
||||||
language...............: de_DE
|
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
|
EOF
|
||||||
)"
|
)"
|
||||||
|
|||||||
Reference in new issue
Block a user