Palmr: run services under low-priv user

- installing older version to test DB operations during upgrade
This commit is contained in:
vhsdream
2025-08-04 12:55:46 -04:00
parent 22fcede55a
commit 1f9db7d927
2 changed files with 12 additions and 9 deletions

View File

@@ -34,10 +34,10 @@ function update_script() {
systemctl stop palmr-frontend palmr-backend
msg_ok "Stopped Services"
msg_info "Updating ${APP}"
cp /opt/palmr/apps/server/.env /opt/palmr.env
rm -rf /opt/palmr
fetch_and_deploy_gh_release "Palmr" "kyantech/Palmr" "tarball" "latest" "/opt/palmr"
msg_info "Updating ${APP}"
PNPM="$(jq -r '.packageManager' /opt/palmr/package.json)"
NODE_VERSION="20" NODE_MODULE="$PNPM" setup_nodejs
cd /opt/palmr/apps/server
@@ -55,6 +55,7 @@ function update_script() {
mv ./.env.example ./.env
$STD pnpm install
$STD pnpm build
chown -R palmr:palmr "$PALMR_DIR" /opt/palmr
msg_ok "Updated $APP"
msg_info "Starting Services"