Skip to content

fix: show error when Nextcloud or OpenProject is unreachable in bashscript#1083

Open
nabim777 wants to merge 1 commit into
masterfrom
fix-sh/show-error-message
Open

fix: show error when Nextcloud or OpenProject is unreachable in bashscript#1083
nabim777 wants to merge 1 commit into
masterfrom
fix-sh/show-error-message

Conversation

@nabim777

@nabim777 nabim777 commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Description

This change improves in bash script for error handling when checking the Nextcloud or openproject instance status. If the nextcloud or openproject instance is unreachable or returns an error, the script now logs a error message.

Related Issue or Workpackage

  • Fixes <issue_link>

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Updated CHANGELOG.md file

@nabim777 nabim777 force-pushed the fix-sh/show-error-message branch 3 times, most recently from 0bc1c04 to a519dbe Compare June 29, 2026 07:33
@nabim777 nabim777 changed the title fix: show error when Nextcloud is unreachable in bashscript fix: show error when Nextcloud or OpenProject is unreachable in bashscript Jun 29, 2026
@nabim777 nabim777 self-assigned this Jun 29, 2026
@nabim777 nabim777 marked this pull request as ready for review June 29, 2026 08:21
Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
@nabim777 nabim777 force-pushed the fix-sh/show-error-message branch from a519dbe to 753254c Compare June 29, 2026 08:54
Comment thread integration_setup.sh
Comment on lines -46 to -52
if [[ $INTEGRATION_SETUP_TEMP_DIR == "" ]]; then
log_info "Using default temp dir: ${INTEGRATION_SETUP_DEFAULT_TEMP_DIR}"
INTEGRATION_SETUP_TEMP_DIR=${INTEGRATION_SETUP_DEFAULT_TEMP_DIR}
mkdir -p ${INTEGRATION_SETUP_TEMP_DIR}
else
log_info "Using ${INTEGRATION_SETUP_TEMP_DIR} as non-default temporary directory"
if [ ! -d "${INTEGRATION_SETUP_DEFAULT_TEMP_DIR}" ]; then

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks fine here. why move down?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was providing the log message before the error messages.

I moved it down, as it is closer to where the script actually starts creating temporary files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants