Compare commits

...

6 Commits

Author SHA1 Message Date
tteckster 063b52f804
Update pve8-post-install.sh
tweak 'pve-enterprise' repository
2023-06-09 21:27:00 -04:00
tteckster 50621a5dfc
Update pve8-post-install.sh
add Ceph Package Repositories
2023-06-09 21:17:17 -04:00
5olu7ion 34674317b3
Case insensitive User Input (#1475)
* Always lower User input
2023-06-09 18:38:17 -04:00
tteckster 9d7170d7a2
Update pve8-post-install.sh 2023-06-09 18:12:13 -04:00
tteckster 1dcc7df1e8
Update pve8-post-install.sh 2023-06-09 16:50:13 -04:00
tteckster 53af603ace
Update pve8-post-install.sh 2023-06-09 16:41:41 -04:00
3 changed files with 23 additions and 4 deletions

View File

@ -34,7 +34,7 @@ PORTAINER_LATEST_VERSION=$(get_latest_release "portainer/portainer")
DOCKER_COMPOSE_LATEST_VERSION=$(get_latest_release "docker/compose")
read -r -p "Would you like to add Portainer? <y/N> " prompt
if echo "$prompt" | grep -Eq "^(y|yes)$"; then
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
msg_info "Installing Portainer $PORTAINER_LATEST_VERSION"
docker volume create portainer_data >/dev/null
$STD docker run -d \
@ -49,7 +49,7 @@ if echo "$prompt" | grep -Eq "^(y|yes)$"; then
fi
read -r -p "Would you like to add Docker Compose? <y/N> " prompt
if echo "$prompt" | grep -Eq "^(y|yes)$"; then
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
msg_info "Installing Docker Compose $DOCKER_COMPOSE_LATEST_VERSION"
DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
mkdir -p $DOCKER_CONFIG/cli-plugins

View File

@ -86,7 +86,7 @@ network_check() {
if ping -c 1 -W 1 1.1.1.1 &>/dev/null; then msg_ok "Internet Connected"; else
msg_error "Internet NOT Connected"
read -r -p "Would you like to continue anyway? <y/N> " prompt
if echo "$prompt" | grep -Eq "^(y|yes)$"; then
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
else
echo -e " 🖧 Check Network Settings"

View File

@ -53,7 +53,9 @@ start_routines() {
case $CHOICE in
yes)
msg_info "Disabling 'pve-enterprise' repository"
sed -i 's/^deb/#deb/g' /etc/apt/sources.list.d/pve-enterprise.list
cat <<EOF >/etc/apt/sources.list.d/pve-enterprise.list
# deb https://enterprise.proxmox.com/debian/pve bookworm pve-enterprise
EOF
msg_ok "Disabled 'pve-enterprise' repository"
;;
no)
@ -95,6 +97,23 @@ EOF
;;
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 \
"yes" " " \
"no" " " 3>&2 2>&1 1>&3)