Skip to content

Commit

Permalink
updated adore_setup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
akoerner1 committed Aug 27, 2024
2 parents 812d56b + 50d45f6 commit 45333a1
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions tools/adore_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ trap 'get_help' EXIT
exiterr (){ printf "$@\n"; exit 1;}

CLONE_DIR="${HOME}"
SUPPORTED_UBUNTU_VERSIONS="20.04 20.10 22.04"
SUPPORTED_UBUNTU_VERSIONS="20.04 20.10 22.04 24.04"
REQUIRED_FREESPACE_GB="20"
ADORE_REPO="https://github.com/eclipse/adore.git"

ADORE_HELP_LINK="https://github.com/eclipse/adore/issues"
ADORE_DOCS_LINK="https://eclipse.github.io/adore/"

HEADLESS=0
SKIP_PREREQUISITE_CHECKS=0

get_help(){
local exit_status=$?
Expand All @@ -31,16 +32,17 @@ get_help(){
}

usage() {
cat << EOF # remove the space between << and EOF, this is due to web plugin issue
cat << EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
Script description here.
Available options:
-h, --help Print this help and exit
-u, --unattended Run ADORe installation in unattended mode
-v, --verbose Print script debug info
-h, --help Print this help and exit
-H, --headless Run ADORe installation in headless mode
-s, --skip-prerequisite-checks Do not run prerequisite checks for storage, os, etc
-v, --verbose Print script debug info
EOF
exit
}
Expand All @@ -50,6 +52,7 @@ function parse_params() {
while :; do
case "${1-}" in
-h | --help) usage ;;
-s | --skip-prerequisite-checks) SKIP_PREREQUISITE_CHECKS=1 ;;
-v | --verbose) set -x ;;
-H | --headless) HEADLESS=1 ;;
-?*) exiterr "ERROR: Unknown option: $1" ;;
Expand Down Expand Up @@ -180,8 +183,13 @@ success(){

parse_params "$*"
banner
check_freespace
check_os_version
if [[ $SKIP_PREREQUISITE_CHECKS == 0 ]]; then
check_freespace
check_os_version
else
printf "Prerequsite checks skipped...\n"
fi

install_dependencies
clone_adore
install_docker
Expand Down

0 comments on commit 45333a1

Please sign in to comment.