added some comments + added note to json
This commit is contained in:
parent
cdc6806bf3
commit
de220d80d7
@ -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
|
||||
|
||||
@ -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",
|
||||
]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user