Files
appstore/apps/simplex-smp-server/7.1.0/scripts/upgrade.sh
renovate[bot] 3452c1300d Update simplexchat/smp-server to v7.1.0
Upgrade existing app from 7.0.1 to 7.1.0.
2026-11-14 23:01:18 +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