mirror of https://github.com/tteck/Proxmox.git
Compare commits
6 Commits
edd2c4100f
...
063b52f804
Author | SHA1 | Date |
---|---|---|
|
063b52f804 | |
|
50621a5dfc | |
|
34674317b3 | |
|
9d7170d7a2 | |
|
1dcc7df1e8 | |
|
53af603ace |
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue