Refactor cleanup steps to use cleanup_lxc function

Replaces repeated manual cleanup commands with a single call to the cleanup_lxc function across all install scripts. This change improves maintainability and consistency by centralizing cleanup logic.
This commit is contained in:
CanbiZ
2025-11-22 14:22:20 +01:00
parent e4b2e051bf
commit 12003224dc
307 changed files with 522 additions and 1971 deletions

View File

@@ -168,14 +168,9 @@ sed -i 's/user npm/user root/g; s/^pid/#pid/g' /usr/local/openresty/nginx/conf/n
sed -r -i 's/^([[:space:]]*)su npm npm/\1#su npm npm/g;' /etc/logrotate.d/nginx-proxy-manager
systemctl enable -q --now openresty
systemctl enable -q --now npm
systemctl restart openresty
msg_ok "Started Services"
motd_ssh
customize
msg_info "Cleaning up"
systemctl restart openresty
$STD apt -y autoremove
$STD apt -y autoclean
$STD apt -y clean
msg_ok "Cleaned"
cleanup_lxc