From de220d80d7fa6d3ee5bda230ed6952136224f756 Mon Sep 17 00:00:00 2001 From: GoldenSpring Date: Mon, 22 Dec 2025 02:52:26 +0300 Subject: [PATCH] added some comments + added note to json --- ct/rustypaste.sh | 6 +++--- frontend/public/json/rustypaste.json | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ct/rustypaste.sh b/ct/rustypaste.sh index d12dc499d..ad82534db 100644 --- a/ct/rustypaste.sh +++ b/ct/rustypaste.sh @@ -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 diff --git a/frontend/public/json/rustypaste.json b/frontend/public/json/rustypaste.json index 8f3aed405..c8cbc59e0 100644 --- a/frontend/public/json/rustypaste.json +++ b/frontend/public/json/rustypaste.json @@ -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", + ] }