Refactor cleanup steps to use cleanup_lxc function (#9354)

This commit is contained in:
CanbiZ
2025-11-22 17:27:13 +01:00
committed by GitHub
parent 89198b0601
commit afe330173e
307 changed files with 522 additions and 1971 deletions

View File

@@ -18,6 +18,7 @@ fetch_and_deploy_gh_release "traccar" "traccar/traccar" "prebuild" "latest" "/op
msg_info "Configuring Traccar"
cd /opt/traccar
$STD ./traccar.run
[ -f README.txt ] || [ -f traccar.run ] && rm -f README.txt traccar.run
msg_ok "Configured Traccar"
msg_info "Starting service"
@@ -26,10 +27,4 @@ msg_ok "Service started"
motd_ssh
customize
msg_info "Cleaning up"
[ -f README.txt ] || [ -f traccar.run ] && rm -f README.txt traccar.run
$STD apt -y autoremove
$STD apt -y autoclean
$STD apt -y clean
msg_ok "Cleaned"
cleanup_lxc