This commit is contained in:
CanbiZ 2025-08-04 09:26:37 +02:00
parent 8d4715c34a
commit 12b0f0337b
2 changed files with 8 additions and 5 deletions

View File

@ -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 <email> <password>${CL}"
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3002${CL}"

View File

@ -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