From 4537fddc75a63602b877ea9477dacfbef15f4bd0 Mon Sep 17 00:00:00 2001 From: Vinicius Fortuna Date: Wed, 10 Jan 2024 08:43:02 -0500 Subject: [PATCH] fix(server): make temp file names longer (#1464) --- .github/workflows/build_and_test_debug.yml | 13 +++++++++++++ .../install_scripts/install_server.sh | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_and_test_debug.yml b/.github/workflows/build_and_test_debug.yml index e73e4647..eabbdadb 100644 --- a/.github/workflows/build_and_test_debug.yml +++ b/.github/workflows/build_and_test_debug.yml @@ -59,6 +59,19 @@ jobs: - name: Shadowbox Integration Test run: npm run action shadowbox/integration_test/run + manual-install-script: + name: Manual Install Script + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2.3.4 + + - name: Install Outline Server + run: ./src/server_manager/install_scripts/install_server.sh --hostname localhost + + - name: Test API + run: 'curl --silent --fail --insecure $(grep "apiUrl" /opt/outline/access.txt | cut -d: -f 2-)/server' + metrics-server: name: Metrics Server runs-on: ubuntu-latest diff --git a/src/server_manager/install_scripts/install_server.sh b/src/server_manager/install_scripts/install_server.sh index e2c125c6..146c0b42 100755 --- a/src/server_manager/install_scripts/install_server.sh +++ b/src/server_manager/install_scripts/install_server.sh @@ -58,8 +58,8 @@ readonly SENTRY_LOG_FILE=${SENTRY_LOG_FILE:-} # - STDERR is only used in the event of a fatal error # - Detailed logs are recorded to this FULL_LOG, which is preserved if an error occurred. # - The most recent error is stored in LAST_ERROR, which is never preserved. -FULL_LOG="$(mktemp -t outline_logXXX)" -LAST_ERROR="$(mktemp -t outline_last_errorXXX)" +FULL_LOG="$(mktemp -t outline_logXXXXXXXXXX)" +LAST_ERROR="$(mktemp -t outline_last_errorXXXXXXXXXX)" readonly FULL_LOG LAST_ERROR function log_command() {