mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-12-20 14:06:24 +01:00
[Core] Auto-cleanup after all update_script executions (#10141)
This commit is contained in:
committed by
GitHub
parent
cb2d4c0051
commit
ad18ca0ff7
@ -2626,8 +2626,8 @@ configure_ssh_settings() {
|
||||
#
|
||||
# - Entry point of script
|
||||
# - On Proxmox host: calls install_script
|
||||
# - In silent mode: runs update_script
|
||||
# - Otherwise: shows update/setting menu
|
||||
# - In silent mode: runs update_script with automatic cleanup
|
||||
# - Otherwise: shows update/setting menu and runs update_script with cleanup
|
||||
# ------------------------------------------------------------------------------
|
||||
start() {
|
||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/tools.func)
|
||||
@ -2638,6 +2638,7 @@ start() {
|
||||
VERBOSE="no"
|
||||
set_std_mode
|
||||
update_script
|
||||
cleanup_lxc
|
||||
else
|
||||
CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "${APP} LXC Update/Setting" --menu \
|
||||
"Support/Update functions for ${APP} LXC. Choose an option:" \
|
||||
@ -2662,6 +2663,7 @@ start() {
|
||||
;;
|
||||
esac
|
||||
update_script
|
||||
cleanup_lxc
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user