mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-22 13:35:15 +00:00
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:
@@ -20,13 +20,9 @@ msg_ok "Installed Dependencies"
|
||||
msg_info "Installing Daemon Sync Server"
|
||||
curl -fsSL "https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/addon/daemonsync_2.2.0.0059_amd64.deb" -o "daemonsync_2.2.0.0059_amd64.deb"
|
||||
$STD dpkg -i daemonsync_2.2.0.0059_amd64.deb
|
||||
rm -rf daemonsync_2.2.0.0059_amd64.deb
|
||||
msg_ok "Installed Daemon Sync Server"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
|
||||
msg_info "Cleaning up"
|
||||
rm -rf daemonsync_2.2.0.0059_amd64.deb
|
||||
$STD apt-get autoremove >/dev/null
|
||||
$STD apt-get autoclean >/dev/null
|
||||
msg_ok "Cleaned"
|
||||
cleanup_lxc
|
||||
|
||||
Reference in New Issue
Block a user