Files
appstore/apps/nginx-linuxserver/1.30.6/scripts/upgrade.sh
T
renovate[bot]andgithub-action update-app-version 191790243d Update linuxserver/nginx Docker tag to v1.30.6 (#8844)
* Update linuxserver/nginx Docker tag to v1.30.6

* 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 19:04:54 +08:00

30 lines
612 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 "NGINX_AUTORELOAD" "false"
ensure_env_default "NGINX_AUTORELOAD_WATCHLIST" ""
else
echo "$ENV_FILE not found; skipped LinuxServer environment migration"
fi