Move config file out of the app folder as it gets deleted upon update

This commit is contained in:
Rémi Bédard-Couture 2024-10-22 16:46:09 -04:00
parent b4732cd8e9
commit 5159695d65
2 changed files with 4 additions and 3 deletions

View file

@ -68,6 +68,7 @@ function update_script() {
pnpm i &>/dev/null
pnpm run build &>/dev/null
cp -r .next/static .next/standalone/.next/
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}"