From 12b0f0337be5dc90329951ec535c975f1518fb17 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 4 Aug 2025 09:26:37 +0200 Subject: [PATCH] cleanup --- ct/tududi.sh | 7 ++++--- install/tududi-install.sh | 6 ++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ct/tududi.sh b/ct/tududi.sh index f8d4aaec..f8407989 100644 --- a/ct/tududi.sh +++ b/ct/tududi.sh @@ -34,11 +34,14 @@ function update_script() { systemctl stop tududi msg_ok "Stopped Service" - msg_info "Updating ${APP}" + msg_info "Remove and backup Files" cp /opt/tududi/backend/.env /opt/tududi.env rm -rf /opt/tududi/backend/dist + msg_ok "Backup and removed Files" + fetch_and_deploy_gh_release "tududi" "chrisvel/tududi" + msg_info "Updating ${APP}" cd /opt/tududi $STD npm install export NODE_ENV=production @@ -52,7 +55,6 @@ function update_script() { msg_info "Starting Service" systemctl start tududi msg_ok "Started Service" - msg_ok "Updated Successfully" else msg_ok "Already up to date" @@ -66,6 +68,5 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" -echo -e "${ADVANCED}${BL}Create your initial user in${CL} ${BGN}/opt/tududi${CL}${BL} in the LXC:${CL} ${RD}npm run user:create ${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3002${CL}" diff --git a/install/tududi-install.sh b/install/tududi-install.sh index b3d87d79..d89d8c3d 100644 --- a/install/tududi-install.sh +++ b/install/tududi-install.sh @@ -14,12 +14,14 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y sqlite3 yq +$STD apt-get install -y \ + sqlite3 \ + yq msg_ok "Installed Dependencies" NODE_VERSION="20" setup_nodejs - fetch_and_deploy_gh_release "tududi" "chrisvel/tududi" + msg_info "Configuring Tududi" cd /opt/tududi $STD npm install