chore: refactor update messages

This commit is contained in:
Tobias
2026-01-06 17:05:47 +01:00
parent 7c27cceec6
commit 5d7084c0bb
78 changed files with 155 additions and 158 deletions

View File

@@ -30,9 +30,9 @@ function update_script() {
fi
if check_for_gh_release "rustypaste" "orhun/rustypaste"; then
msg_info "Stopping rustypaste"
msg_info "Stopping Services"
systemctl stop rustypaste
msg_ok "Stopped rustypaste"
msg_ok "Stopped Services"
msg_info "Creating Backup"
tar -czf "/opt/rustypaste_backup_$(date +%F).tar.gz" "/opt/rustypaste/upload"
@@ -46,10 +46,10 @@ function update_script() {
$STD cargo build --locked --release
msg_ok "Updated rustypaste"
msg_info "Starting rustypaste"
msg_info "Starting Services"
systemctl start rustypaste
msg_ok "Started rustypaste"
msg_ok "Update Successful"
msg_ok "Started Services"
msg_ok "Updated successfully!"
fi
exit
}
@@ -58,7 +58,7 @@ start
build_container
description
msg_ok "Completed Successfully!\n"
msg_ok "Completed successfully!\n"
echo -e "${CREATING}${GN}rustypaste setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8000${CL}"