mirror of
https://github.com/linuxserver/docker-budge.git
synced 2026-02-05 12:48:12 +08:00
12 lines
365 B
Plaintext
12 lines
365 B
Plaintext
#!/usr/bin/with-contenv bash
|
|
# shellcheck shell=bash
|
|
|
|
DEFAULT_CONF="/config/nginx/site-confs/default.conf"
|
|
OLD_ROOT="root /app/budge/frontend/build;"
|
|
NEW_ROOT="root /app/www/public/frontend/build;"
|
|
|
|
if grep -q "${OLD_ROOT}" "${DEFAULT_CONF}" 2>/dev/null; then
|
|
echo "updating root in ${DEFAULT_CONF}"
|
|
sed -i "s|${OLD_ROOT}|${NEW_ROOT}|" "${DEFAULT_CONF}"
|
|
fi
|