Remove redundant cleanup steps from update scripts (#9359)

This commit is contained in:
CanbiZ
2025-11-22 16:41:22 +01:00
committed by GitHub
parent fae0552c04
commit 9777abe56d
57 changed files with 180 additions and 387 deletions

View File

@@ -48,16 +48,13 @@ function update_script() {
temp_file=$(mktemp)
curl -fsSL https://fileflows.com/downloads/zip -o "$temp_file"
$STD unzip -o -d /opt/fileflows "$temp_file"
rm -rf "$temp_file"
rm -rf "$backup_filename"
msg_ok "Updated $APP to latest version"
msg_info "Starting Service"
systemctl start fileflows
msg_ok "Started Service"
msg_info "Cleaning Up"
rm -rf "$temp_file"
rm -rf "$backup_filename"
msg_ok "Cleanup Completed"
msg_ok "Updated successfully!"
else
msg_ok "No update required. ${APP} is already at latest version"