added some comments + added note to json

This commit is contained in:
GoldenSpring
2025-12-22 02:52:26 +03:00
parent cdc6806bf3
commit de220d80d7
2 changed files with 6 additions and 4 deletions

View File

@@ -41,17 +41,17 @@ function update_script() {
# Creating Backup
msg_info "Creating Backup"
tar -czf "/opt/${APP}_backup_$(date +%F).tar.gz" "/opt/${APP}/upload"
tar -czf "/opt/${APP}_backup_$(date +%F).tar.gz" "/opt/${APP}/upload" # Backing up full project + all bins
msg_ok "Backup Created"
# Execute Update
msg_info "Updating $APP to ${RELEASE}"
cd /opt/rustypaste
git fetch --tags
git fetch --tags # getting newest versions
git switch --detach ${RELEASE}
cargo build --locked --release
cargo build --locked --release # recreating the binary
msg_ok "Updated $APP to ${RELEASE}"
# Starting Services