wealthfolio: update cors (#12617)

* Update wealthfolio-install.sh

* Update wealthfolio.sh
This commit is contained in:
Tobias
2026-03-06 16:17:00 +01:00
committed by GitHub
parent 9e2bb23d35
commit b848c2d1bf
2 changed files with 7 additions and 4 deletions

View File

@@ -29,8 +29,11 @@ function update_script() {
exit
fi
RELEASE="3.0.3"
if check_for_gh_release "wealthfolio" "afadil/wealthfolio" "${RELEASE}"; then
if grep -q '^WF_CORS_ALLOW_ORIGINS=\*$' /opt/wealthfolio/.env; then
sed -i "s|^WF_CORS_ALLOW_ORIGINS=\*$|WF_CORS_ALLOW_ORIGINS=http://${LOCAL_IP}:8080|" /opt/wealthfolio/.env
fi
if check_for_gh_release "wealthfolio" "afadil/wealthfolio"; then
msg_info "Stopping Service"
systemctl stop wealthfolio
msg_ok "Stopped Service"
@@ -40,7 +43,7 @@ function update_script() {
cp /opt/wealthfolio/.env /opt/wealthfolio_env_backup
msg_ok "Backed up Data"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "wealthfolio" "afadil/wealthfolio" "tarball" "v${RELEASE}"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "wealthfolio" "afadil/wealthfolio" "tarball"
msg_info "Building Frontend (patience)"
cd /opt/wealthfolio