From 08542c3842e1a68d11a836dd7c8e8be7de819308 Mon Sep 17 00:00:00 2001 From: thorstenspille Date: Sun, 1 Oct 2023 22:38:19 +0200 Subject: [PATCH] Add summary --- postinstall | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/postinstall b/postinstall index 667b1b4..4a66a24 100755 --- a/postinstall +++ b/postinstall @@ -383,6 +383,21 @@ installation_task(){ } +summary(){ + whiptail --title "POSTINSTALL SUMMARY" \ + --backtitle $PROG \ + --yes-button "INSTALL" \ + --no-button "ABORT & EXIT" \ + --yesno "Summary: \n\ + zfs_arc_min: $ZFS_ARC_MIN_MEGABYTES MB\n\ + zfs_arc_max: $ZFS_ARC_MAX_MEGABYTES MB\n\ + swappiness: $SWAPPINESS %\n\ + locales: $locales\n\ + repository: $repo_selection \n\ + subscription: $(pvesubscription get | grep status | cut -d' ' -f2)\n\ + suppress subscription warning: $suppress_warning" 30 76 +} + source /etc/os-release # Calculate and suggest values for ZFS L1ARC cache @@ -403,4 +418,6 @@ select_pve_repos # subscription related actions select_subscription +summary + echo "Proxmox postinstallation finished!"