This commit is contained in:
MickLesk
2026-08-25 16:00:01 +02:00
parent 6f5b4279da
commit fa0f374cf2
2 changed files with 4 additions and 11 deletions

View File

@@ -37,16 +37,11 @@ function update_script() {
systemctl stop budget-board
msg_ok "Stopped Service"
msg_info "Backing up Data"
cp -r /opt/budget-board/budget-board.env /opt/budget-board.env.bak
msg_ok "Backed up Data"
create_backup /opt/budget-board/budget-board.env
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "budget-board" "teelur/budget-board" "tarball"
msg_info "Restoring Configuration"
cp -r /opt/budget-board.env.bak /opt/budget-board/budget-board.env
rm -f /opt/budget-board.env.bak
msg_ok "Restored Configuration"
restore_backup
msg_info "Rebuilding Backend"
cd /opt/budget-board/server
@@ -65,7 +60,7 @@ function update_script() {
msg_info "Starting Service"
systemctl start budget-board
systemctl reload nginx
nginx_enable_site budget-board.conf
msg_ok "Started Service"
msg_ok "Updated successfully!"
fi

View File

@@ -119,9 +119,7 @@ server {
}
}
EOF
ln -sf /etc/nginx/sites-available/budget-board.conf /etc/nginx/sites-enabled/budget-board.conf
rm -f /etc/nginx/sites-enabled/default
systemctl reload nginx
nginx_enable_site budget-board.conf
msg_ok "Created services"
motd_ssh