Files
appstore/apps/simplex-smp-server/latest/scripts/upgrade.sh
T
renovate[bot] e4d01c4de6 simplex-smp-server: adapt v7 package to upstream runtime
Origin: renovate PR #4511\n\n- update simplexchat/smp-server to v7.0.0\n- remove the obsolete HTTP info-page override and keep the SMP relay port\n- source runtime path variables in lifecycle scripts\n- delete legacy stats logs during 6.5.x -> 7.0.0 upgrade to avoid v7 startup failure
2026-07-04 20:20:47 +08:00

15 lines
329 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
if [[ -f ./.env ]]; then
set -a
# shellcheck disable=SC1091
source ./.env
set +a
fi
CONFIG_DIR="${APP_CONFIG_DIR:-./data/config}"
STATE_DIR="${APP_STATE_DIR:-./data/state}"
mkdir -p "$CONFIG_DIR" "$STATE_DIR"
rm -f "$STATE_DIR"/smp-server-stats.log "$STATE_DIR"/smp-server-stats.daily.log