Update update-pve.sh

This commit is contained in:
MacRimi
2025-09-09 19:14:27 +02:00
parent 15cd118845
commit 9b1e39dbb4

View File

@@ -240,14 +240,16 @@ EOF
return 0 return 0
fi fi
msg_info "$(translate "Removing conflicting utilities...")" msg_info "$(translate "Cleaning up unused time synchronization services...")"
if /usr/bin/env DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::='--force-confdef' purge ntp openntpd systemd-timesyncd > /dev/null 2>&1; then if /usr/bin/env DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::='--force-confdef' purge ntp openntpd systemd-timesyncd > /dev/null 2>&1; then
msg_ok "$(translate "Conflicting utilities removed")" msg_ok "$(translate "Old time services removed successfully")"
else else
msg_warn "$(translate "Some conflicting utilities may not have been removed")" msg_warn "$(translate "Some old time services could not be removed (not installed)")"
fi fi
msg_info "$(translate "Updating packages...")" msg_info "$(translate "Updating packages...")"
apt-get install pv -y > /dev/null 2>&1 apt-get install pv -y > /dev/null 2>&1
msg_ok "$(translate "Packages updated successfully")" msg_ok "$(translate "Packages updated successfully")"
@@ -330,6 +332,7 @@ EOF
echo -e "${TAB}${GN}🖥️ $(translate "Proxmox VE")${CL}: ${BL}$target_version (Debian $OS_CODENAME)${CL}" echo -e "${TAB}${GN}🖥️ $(translate "Proxmox VE")${CL}: ${BL}$target_version (Debian $OS_CODENAME)${CL}"
msg_ok "$(translate "Proxmox VE 9.x configuration completed.")" msg_ok "$(translate "Proxmox VE 9.x configuration completed.")"
} }
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then