Enhance warracker.sh to update application

Added commands to update the application and install dependencies.
This commit is contained in:
Bas van den Berg 2025-09-20 18:13:44 +02:00 committed by GitHub
parent eb4a91eb50
commit 527c31a94e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,11 +37,17 @@ function update_script() {
fetch_and_deploy_gh_release "warracker" "sassanix/Warracker" "tarball" "latest" "/opt/warracker"
msg_info "Updating $APP"
cd /opt/warracker/backend
$STD uv venv .venv
$STD source .venv/bin/activate
$STD uv pip install -r requirements.txt
msg_ok "Updated $APP"
msg_info "Starting Services"
systemctl start warracker
systemctl start nginx
msg_ok "Started Services"
msg_ok "Updated Successfully"
fi
exit