From 3bc2a68c3b3a1253c8502decd90469e1ac5d91f8 Mon Sep 17 00:00:00 2001 From: pvincent Date: Thu, 30 Oct 2025 21:41:06 +0400 Subject: [PATCH] pct-create use BRIDGE default value --- install.sh | 41 +---------------------------------------- 1 file changed, 1 insertion(+), 40 deletions(-) diff --git a/install.sh b/install.sh index 3abca32..b3b02e1 100755 --- a/install.sh +++ b/install.sh @@ -42,50 +42,11 @@ function install_miaou_proxmox { true } -function compute_cpu_cores { - cores=$(nproc) - if [[ $cores -ge 16 ]]; then - cores=$(( cores / 4 )) - else - if [[ $cores -ge 4 ]]; then - cores=$(( cores / 2 )) - else - cores=1 - fi - fi - echo $cores -} - -function choose_default { - echo 'initializing default values...' - storage_size='20G' - memory='2G' - swap='2G' - cpu=$(compute_cpu_cores) - - mapfile -t storages <<< $(pvesm status | grep zfspool | cut -d' ' -f1) - - PS3="Choose default storage number: " - echo "TYPE=ZFSPOOL STORAGE LIST:" - echo "--------------------------" - select storage_disk in "${storages[@]}"; do - [[ -n $storage_disk ]] && break - done - - cat > $CONFIG_FILE <