Files
appstore/apps/changedetection.io-linuxserver/0.70.2/scripts/upgrade.sh
T
renovate[bot]andgithub-action update-app-version 4c6fe62709 Update linuxserver/changedetection.io Docker tag to v0.70.2 (#8866)
* Update linuxserver/changedetection.io Docker tag to v0.70.2

* Update app version [skip ci]

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-action update-app-version <githubaction@githubaction.com>
2026-11-13 20:41:33 +08:00

30 lines
594 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ENV_FILE="${ENV_FILE:-./.env}"
ensure_env_default() {
local key="$1"
local value="$2"
if [[ ! -f "$ENV_FILE" ]]; then
echo "$ENV_FILE not found; skipped $key migration"
return
fi
if grep -qE "^${key}=" "$ENV_FILE"; then
echo "$key already exists"
return
fi
printf '%s=%s\n' "$key" "$value" >> "$ENV_FILE"
echo "Added $key"
}
if [[ -f "$ENV_FILE" ]]; then
ensure_env_default "BASE_URL" ""
ensure_env_default "PLAYWRIGHT_DRIVER_URL" ""
else
echo "$ENV_FILE not found; skipped LinuxServer environment migration"
fi