From 612979a04059d215f570aaa1bdace88bc0ad4b53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20B=C3=A9dard-Couture?= Date: Tue, 22 Oct 2024 18:13:10 -0400 Subject: [PATCH] Fix update path for PeaNUT following v3 fix (#3954) --- ct/peanut.sh | 2 ++ install/peanut-install.sh | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ct/peanut.sh b/ct/peanut.sh index d776df0d..f327e0e8 100644 --- a/ct/peanut.sh +++ b/ct/peanut.sh @@ -68,6 +68,8 @@ function update_script() { pnpm i &>/dev/null pnpm run build &>/dev/null cp -r .next/static .next/standalone/.next/ + mkdir -p /opt/peanut/.next/standalone/config + ln -sf /etc/peanut/settings.yml /opt/peanut/.next/standalone/config/settings.yml systemctl start peanut echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated $APP to ${RELEASE}" diff --git a/install/peanut-install.sh b/install/peanut-install.sh index 2ba26e6e..fa4a6215 100644 --- a/install/peanut-install.sh +++ b/install/peanut-install.sh @@ -45,14 +45,14 @@ $STD pnpm i $STD pnpm run build cp -r .next/static .next/standalone/.next/ mkdir -p /opt/peanut/.next/standalone/config -cat </opt/peanut/.next/standalone/config/settings.yml +mkdir -p /etc/peanut/ +cat </etc/peanut/settings.yml WEB_HOST: 0.0.0.0 WEB_PORT: 3000 NUT_HOST: 0.0.0.0 NUT_PORT: 3493 EOF -mkdir -p /etc/peanut -ln -sf /opt/peanut/.next/standalone/config/settings.yml /etc/peanut/settings.yml +ln -sf /etc/peanut/settings.yml /opt/peanut/.next/standalone/config/settings.yml msg_ok "Installed Peanut" msg_info "Creating Service"