瀏覽代碼

Update pve8-post-install.sh

add Ceph Package Repositories
tteckster 2 年之前
父節點
當前提交
50621a5dfc
共有 1 個文件被更改,包括 17 次插入0 次删除
  1. 17 0
      misc/pve8-post-install.sh

+ 17 - 0
misc/pve8-post-install.sh

@@ -95,6 +95,23 @@ EOF
     ;;
     ;;
   esac
   esac
 
 
+  CHOICE=$(whiptail --title "CEPH PACKAGE REPOSITORIES" --menu "The 'Ceph Package Repositories' provides access to both the 'no-subscription' and 'enterprise' repositories.\n \nEnable 'ceph package repositories?" 14 58 2 \
+    "yes" " " \
+    "no" " " 3>&2 2>&1 1>&3)
+  case $CHOICE in
+  yes)
+    msg_info "Enabling 'ceph package repositories'"
+    cat <<EOF >/etc/apt/sources.list.d/ceph.list
+# deb http://download.proxmox.com/debian/ceph-quincy bookworm enterprise
+deb http://download.proxmox.com/debian/ceph-quincy bookworm no-subscription
+EOF
+    msg_ok "Enabled 'ceph package repositories'"
+    ;;
+  no)
+    msg_error "Selected no to Enabling 'ceph package repositories'"
+    ;;
+  esac
+
   CHOICE=$(whiptail --title "PVETEST" --menu "The 'pvetest' repository can give advanced users access to new features and updates before they are officially released.\n \nAdd (Disabled) 'pvetest' repository?" 14 58 2 \
   CHOICE=$(whiptail --title "PVETEST" --menu "The 'pvetest' repository can give advanced users access to new features and updates before they are officially released.\n \nAdd (Disabled) 'pvetest' repository?" 14 58 2 \
     "yes" " " \
     "yes" " " \
     "no" " " 3>&2 2>&1 1>&3)
     "no" " " 3>&2 2>&1 1>&3)