From 30815de5c10c77794e79c41bdad33d4e2533c9dc Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 1 Dec 2025 16:26:28 +0100 Subject: [PATCH] mealie fix --- install/mealie-install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install/mealie-install.sh b/install/mealie-install.sh index 8b330fab4..c7c9e4106 100644 --- a/install/mealie-install.sh +++ b/install/mealie-install.sh @@ -35,8 +35,12 @@ $STD uv sync --frozen --extra pgsql msg_ok "Installed Python Dependencies" msg_info "Building Frontend" +MEALIE_VERSION=$(<$HOME/.mealie) +CONTAINER_IP=$(hostname -I | awk '{print $1}') export NUXT_TELEMETRY_DISABLED=1 cd /opt/mealie/frontend +$STD sed -i "s|value: data.buildId,|value: \"v${MEALIE_VERSION}\",|g" /opt/mealie/frontend/pages/admin/site-settings.vue +$STD sed -i "s|value: data.production ? i18n.t(\"about.production\") : i18n.t(\"about.development\"),|value: \"bare-metal\",|g" /opt/mealie/frontend/pages/admin/site-settings.vue $STD yarn install --prefer-offline --frozen-lockfile --non-interactive --production=false --network-timeout 1000000 $STD yarn generate msg_ok "Built Frontend" @@ -70,6 +74,7 @@ POSTGRES_DB=${PG_DB_NAME} PRODUCTION=true HOST=0.0.0.0 PORT=9000 +BASE_URL=http://${CONTAINER_IP}:9000 EOF msg_ok "Wrote Environment File"