From 617136fdc7d65c30363c90630f8652325f067a44 Mon Sep 17 00:00:00 2001 From: sanj <67624670+iodrift@users.noreply.github.com> Date: Sun, 2 Feb 2025 20:46:49 -0800 Subject: [PATCH] Auto-update: Sun Feb 2 20:46:49 PST 2025 --- example-refresh_token.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/example-refresh_token.sh b/example-refresh_token.sh index 8dcabac..04c5956 100755 --- a/example-refresh_token.sh +++ b/example-refresh_token.sh @@ -12,8 +12,8 @@ log() { # Generate new token (32 random hex characters) NEW_TOKEN=$(openssl rand -hex 16) -# Write new token to file -echo "$NEW_TOKEN" > "$TOKEN_FILE" +# Write new token to file without newline +echo -n "$NEW_TOKEN" > "$TOKEN_FILE" if [ $? -ne 0 ]; then log "ERROR: Failed to write new token to $TOKEN_FILE" exit 1 @@ -28,12 +28,12 @@ docker rm conduwuit docker run -d \ -p 127.0.0.1:8448:6167 \ -v db:/var/lib/conduwuit/ \ - -v /path/to/hand_of_morpheus/.registration_token:/registration_token:ro \ + -v "${TOKEN_FILE}:/.registration_token:ro" \ -e CONDUWUIT_SERVER_NAME="your.domain" \ -e CONDUWUIT_DATABASE_PATH="/var/lib/conduwuit/conduwuit.db" \ -e CONDUWUIT_DATABASE_BACKUP_PATH="/var/lib/conduwuit/backup" \ -e CONDUWUIT_ALLOW_REGISTRATION=true \ - -e CONDUWUIT_REGISTRATION_TOKEN_FILE="/registration_token" \ + -e CONDUWUIT_REGISTRATION_TOKEN_FILE="/.registration_token" \ -e CONDUWUIT_PORT=6167 \ -e CONDUWUIT_ADDRESS="0.0.0.0" \ -e CONDUWUIT_NEW_USER_DISPLAYNAME_SUFFIX="" \