upgrade_roundcube.sh: Warn if version is already installed, but give the pssibility to proceed.
This commit is contained in:
parent
91ab50e590
commit
d7aa579f26
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user