Skip to content

Commit

Permalink
Rather exit than uninstall if previous installation is found.
Browse files Browse the repository at this point in the history
  • Loading branch information
Schpidi committed Nov 20, 2018
1 parent 2f030ae commit b3687ff
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions install/ngeo-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,12 @@ ngeo_install() {
echo "------------------------------------------------------------------------------"

echo "Performing installation step 0"
echo "Uninstalling any previous version"
ngeo_uninstall
echo "Checking for any previous version and exiting if present"
if [ -n "`rpm -qa | grep ngEO_Browse_Server`" ] ; then
echo -e "Package ngEO_Browse_Server: \033[1;31minstalled\033[m\017"
echo "Exiting, please run uninstall or full_uninstall before continuing."
exit 1
fi

echo "Starting ngEO Browse Server installation"
echo "Assuming successful execution of installation steps 10, 20, and 30"
Expand Down

0 comments on commit b3687ff

Please sign in to comment.