mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-12-20 22:16: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
|
# - Entry point of script
|
||||||
# - On Proxmox host: calls install_script
|
# - On Proxmox host: calls install_script
|
||||||
# - In silent mode: runs update_script
|
# - In silent mode: runs update_script with automatic cleanup
|
||||||
# - Otherwise: shows update/setting menu
|
# - Otherwise: shows update/setting menu and runs update_script with cleanup
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
start() {
|
start() {
|
||||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/tools.func)
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/tools.func)
|
||||||
@ -2638,6 +2638,7 @@ start() {
|
|||||||
VERBOSE="no"
|
VERBOSE="no"
|
||||||
set_std_mode
|
set_std_mode
|
||||||
update_script
|
update_script
|
||||||
|
cleanup_lxc
|
||||||
else
|
else
|
||||||
CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "${APP} LXC Update/Setting" --menu \
|
CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "${APP} LXC Update/Setting" --menu \
|
||||||
"Support/Update functions for ${APP} LXC. Choose an option:" \
|
"Support/Update functions for ${APP} LXC. Choose an option:" \
|
||||||
@ -2662,6 +2663,7 @@ start() {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
update_script
|
update_script
|
||||||
|
cleanup_lxc
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user