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
No known key found for this signature in database
GPG Key ID: 75701174BCB6A808
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

View File

@ -31,5 +31,7 @@
"username": null,
"password": null
},
"notes": []
"notes": [
"When updating the script it will backup the whole project, make sure to extract it to a safe location or remove",
]
}