Skip to content
Snippets Groups Projects
Commit fe2efab3 authored by cramakri's avatar cramakri
Browse files

LMS-2411 Minor fixes to the run-console script.

SVN: 22314
parent f1dc2634
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ function readAdminPassword()
read -s -p "Re-type password for openBIS 'admin' user : " ADMIN_PASSWORD2
echo ""
if [ "$ADMIN_PASSWORD" -ne "$ADMIN_PASSWORD2" ]; then
if [ "$ADMIN_PASSWORD" != "$ADMIN_PASSWORD2" ]; then
echo "Administrator passwords do not match. Aborting installation."
exit 2
fi
......@@ -49,6 +49,13 @@ if [ -z "$install_path" ]; then
exit 1
fi
dss_root_dir=$( grep -e "^DSS.ROOT-DIR=.*$" $BASE/console.properties | sed "s/DSS.ROOT-DIR=//" )
if [ -z "$dss_root_dir" ]; then
echo "The property DSS.ROOT-DIR= must be configured in $BASE/console.properties."
echo "Please edit the file and run the installation script again."
exit 1
fi
ensureToolOnPath "java"
ensureToolOnPath "psql"
ensureToolOnPath "pg_dump"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment