Skip to content

Commit

Permalink
Make sure all functions execute regardless of individual return code
Browse files Browse the repository at this point in the history
  • Loading branch information
Scitz0 committed Aug 24, 2024
1 parent 71ec017 commit 9f801fc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scripts/grest-helper-scripts/setup-grest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -683,12 +683,12 @@ SGVERSION=v1.2.0a
set_environment_variables
parse_args
common_update
[[ "${INSTALL_POSTGREST}" == "Y" ]] && setup_db_basics && deploy_postgrest
[[ "${INSTALL_HAPROXY}" == "Y" ]] && deploy_haproxy
[[ "${INSTALL_MONITORING_AGENTS}" == "Y" ]] && deploy_monitoring_agents
[[ "${OVERWRITE_CONFIG}" == "Y" ]] && deploy_configs
[[ "${OVERWRITE_SYSTEMD}" == "Y" ]] && deploy_systemd
[[ "${RESET_GREST}" == "Y" ]] && remove_all_grest_cron_jobs && reset_grest && deploy_b32_ext
[[ "${DB_QRY_UPDATES}" == "Y" ]] && remove_all_grest_cron_jobs && setup_db_basics && deploy_query_updates && update_grest_version
if [[ "${INSTALL_POSTGREST}" == "Y" ]]; then setup_db_basics; deploy_postgrest; fi
if [[ "${INSTALL_HAPROXY}" == "Y" ]]; then deploy_haproxy; fi
if [[ "${INSTALL_MONITORING_AGENTS}" == "Y" ]]; then deploy_monitoring_agents; fi
if [[ "${OVERWRITE_CONFIG}" == "Y" ]]; then deploy_configs; fi
if [[ "${OVERWRITE_SYSTEMD}" == "Y" ]]; then deploy_systemd; fi
if [[ "${RESET_GREST}" == "Y" ]]; then remove_all_grest_cron_jobs; reset_grest; deploy_b32_ext; fi
if [[ "${DB_QRY_UPDATES}" == "Y" ]]; then remove_all_grest_cron_jobs; setup_db_basics; deploy_query_updates; update_grest_version; fi
pushd -0 >/dev/null || err_exit
dirs -c

0 comments on commit 9f801fc

Please sign in to comment.