Skip to content

Commit

Permalink
fix(server): make temp file names longer (Jigsaw-Code#1464)
Browse files Browse the repository at this point in the history
  • Loading branch information
fortuna authored Jan 10, 2024
1 parent ac6be23 commit 4537fdd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build_and_test_debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/server_manager/install_scripts/install_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 4537fdd

Please sign in to comment.