From 16267af541f178cdc612b1faf71423ab6ee42f99 Mon Sep 17 00:00:00 2001 From: pespinel Date: Tue, 17 Feb 2026 21:39:39 +0100 Subject: [PATCH] Fix update_script --- ct/strapi.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/ct/strapi.sh b/ct/strapi.sh index 7ae5dbc1a..798fcb795 100755 --- a/ct/strapi.sh +++ b/ct/strapi.sh @@ -30,11 +30,25 @@ function update_script() { NODE_VERSION="24" setup_nodejs - msg_info "Updating strapi" + msg_info "Stopping ${APP}" + systemctl stop strapi + msg_ok "Stopped ${APP}" + + msg_info "Updating ${APP}" cd /opt/strapi + $STD npm install + msg_ok "Updated ${APP}" + + msg_info "Building ${APP}" + export NODE_OPTIONS="--max-old-space-size=3072" $STD npm run build - systemctl restart strapi - msg_ok "Updated successfully!" + msg_ok "Built ${APP}" + + msg_info "Starting ${APP}" + systemctl start strapi + msg_ok "Started ${APP}" + + msg_ok "Update completed successfully!" exit }