Skip to content

Commit 38b73de

Browse files
committed
Fixed issue of installing old versions.
1 parent aa76a35 commit 38b73de

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

server_linux_install.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ if [[ -n "$TARGET_VERSION" && ! "$TARGET_VERSION" =~ ^[A-Za-z0-9._+-]+$ ]]; then
166166
exit 2
167167
fi
168168

169+
if [[ -n "$TARGET_VERSION" ]]; then
170+
log_info "Requested release tag: $TARGET_VERSION"
171+
fi
172+
169173
if [[ "${EUID}" -ne 0 ]]; then
170174
log_error "Run this script as root (sudo)."
171175
fi
@@ -642,6 +646,7 @@ else
642646
fi
643647
ARCH="$(uname -m)"
644648
select_release_artifact "$ARCH" "$TARGET_VERSION"
649+
log_info "Download URL: $URL"
645650

646651
if [[ -f "server_config.toml" ]]; then
647652
mv -f server_config.toml server_config.toml.backup
@@ -746,6 +751,10 @@ if [[ "$KEY_GENERATED" != true ]]; then
746751
kill "$APP_PID" 2>/dev/null || true
747752
wait "$APP_PID" 2>/dev/null || true
748753

754+
if grep -q "Active Encryption Key" "$TMP_LOG" 2>/dev/null; then
755+
READY=true
756+
fi
757+
749758
if [[ "$READY" == true ]]; then
750759
log_success "Key generated."
751760
EXECUTABLE_ARGS=""

0 commit comments

Comments
 (0)