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"