upgrade_roundcube.sh: Warn if version is already installed, but give the pssibility to proceed.

This commit is contained in:
Christoph 2018-01-25 14:17:14 +01:00
parent 91ab50e590
commit d7aa579f26

View File

@ -175,7 +175,13 @@ echo ""
NEW_INSTALL_DIR="${WEBSITE_BASEDIR}/roundcubemail-${ROUNDCUBE_VERSION}"
if [[ "$NEW_INSTALL_DIR" = "$CUR_INSTALL_DIR" ]] ; then
fatal "Version '${ROUNDCUBE_VERSION}' is already installed"
warn "Version '${ROUNDCUBE_VERSION}' is already installed"
echononl "Type uppercase \"yes\" to proceed with upgrading: "
read _proceed
[[ "$_proceed" == "YES" ]] || fatal "Exiting by user request.."
fi