From c032fd3a901eb518c3dddcdb41aa4e8f883bda41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Sat, 4 Jul 2026 01:07:03 +0200 Subject: [PATCH] Refactor configuration restoration to use restore_backup Removed manual configuration restoration and replaced it with a backup restore function. --- ct/twenty.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ct/twenty.sh b/ct/twenty.sh index 3bde6f746..0b212ef0f 100644 --- a/ct/twenty.sh +++ b/ct/twenty.sh @@ -41,11 +41,8 @@ function update_script() { create_backup /opt/twenty/.env \ /opt/twenty/packages/twenty-server/.local-storage CLEAN_INSTALL=1 fetch_and_deploy_gh_release "twenty" "twentyhq/twenty" "tarball" - - msg_info "Restoring Configuration" - cp /opt/twenty.env.bak /opt/twenty/.env - msg_ok "Restored Configuration" - + restore_backup + msg_info "Building Application" cd /opt/twenty export COREPACK_ENABLE_DOWNLOAD_PROMPT=0 @@ -66,7 +63,6 @@ function update_script() { $STD npx -y typeorm migration:run -d dist/database/typeorm/core/core.datasource msg_ok "Ran Database Migrations" - restore_backup msg_info "Starting Services" systemctl start twenty-server twenty-worker