Revert "Add capital Y to prompts"

This reverts commit 7a5ebbe866.
pull/1475/head
5olu7ion 2 years ago
parent 7a5ebbe866
commit ef94f1b931
  1. 4
      install/alpine-docker-install.sh
  2. 4
      install/docker-install.sh
  3. 2
      install/influxdb-install.sh
  4. 2
      install/k0s-install.sh
  5. 2
      install/mariadb-install.sh
  6. 2
      install/postgresql-install.sh
  7. 2
      install/scrypted-install.sh
  8. 2
      misc/alpine-install.func
  9. 4
      misc/bluetooth.sh
  10. 2
      misc/install.func
  11. 14
      misc/post-pbs-install.sh
  12. 6
      misc/pyenv.sh

@ -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|Y)$"; then
if echo "$prompt" | grep -Eq "^(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|Y)$"; then
fi
read -r -p "Would you like to add Docker Compose? <y/N> " prompt
if echo "$prompt" | grep -Eq "^(y|yes|Y)$"; then
if echo "$prompt" | grep -Eq "^(y|yes)$"; then
msg_info "Installing Docker Compose $DOCKER_COMPOSE_LATEST_VERSION"
DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
mkdir -p $DOCKER_CONFIG/cli-plugins

@ -44,7 +44,7 @@ $STD sh <(curl -sSL https://get.docker.com)
msg_ok "Installed Docker $DOCKER_LATEST_VERSION"
read -r -p "Would you like to add Portainer? <y/N> " prompt
if [[ "${prompt,,}" =~ ^(y|yes|Y)$ ]]; then
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
msg_info "Installing Portainer $PORTAINER_LATEST_VERSION"
docker volume create portainer_data >/dev/null
$STD docker run -d \
@ -59,7 +59,7 @@ if [[ "${prompt,,}" =~ ^(y|yes|Y)$ ]]; then
fi
read -r -p "Would you like to add Docker Compose? <y/N> " prompt
if [[ "${prompt,,}" =~ ^(y|yes|Y)$ ]]; 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

@ -48,7 +48,7 @@ $STD systemctl enable --now influxdb
msg_ok "Installed InfluxDB"
read -r -p "Would you like to add Telegraf? <y/N> " prompt
if [[ "${prompt,,}" =~ ^(y|yes|Y)$ ]]; then
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
msg_info "Installing Telegraf"
$STD apt-get install -y telegraf
msg_ok "Installed Telegraf"

@ -29,7 +29,7 @@ k0s config create > /etc/k0s/k0s.yaml
msg_ok "Installed k0s Kubernetes"
read -r -p "Would you like to add Helm Package Manager? <y/N> " prompt
if [[ "${prompt,,}" =~ ^(y|yes|Y)$ ]]; then
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
msg_info "Installing Helm"
$STD bash <(curl -sSLf https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3)
msg_ok "Installed Helm"

@ -26,7 +26,7 @@ $STD apt-get install -y mariadb-server
msg_ok "Installed MariaDB"
read -r -p "Would you like to add Adminer? <y/N> " prompt
if [[ "${prompt,,}" =~ ^(y|yes|Y)$ ]]; then
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
msg_info "Installing Adminer"
$STD apt install -y adminer
$STD a2enconf adminer

@ -133,7 +133,7 @@ sudo systemctl restart postgresql
msg_ok "Installed PostgreSQL"
read -r -p "Would you like to add Adminer? <y/N> " prompt
if [[ "${prompt,,}" =~ ^(y|yes|Y)$ ]]; then
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
msg_info "Installing Adminer"
$STD apt install -y adminer
$STD sudo a2enconf adminer

@ -77,7 +77,7 @@ $STD python3 -m pip install aiofiles debugpy typing_extensions typing
msg_ok "Installed Python3"
read -r -p "Would you like to add Coral Edge TPU support? <y/N> " prompt
if [[ "${prompt,,}" =~ ^(y|yes|Y)$ ]]; then
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
msg_info "Adding Coral Edge TPU Support"
$STD apt-key add <(curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg)
sh -c 'echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" > /etc/apt/sources.list.d/coral-edgetpu.list'

@ -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|Y)$"; then
if echo "$prompt" | grep -Eq "^(y|yes)$"; then
echo -e " ⚠ ${RD}Expect Issues Without Internet${CL}"
else
echo -e " 🖧 Check Network Settings"

@ -41,7 +41,7 @@ clear
EOF
read -r -p "Switch from dbus-daemon to dbus-broker? <y/N> " prompt
if [[ "${prompt,,}" =~ ^(y|yes|Y)$ ]]; then
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
cat <<EOF >>/etc/apt/sources.list
deb http://deb.debian.org/debian bullseye-backports main contrib non-free
@ -52,7 +52,7 @@ apt-get -t bullseye-backports install -y dbus-broker &>/dev/null
systemctl enable dbus-broker.service &>/dev/null
fi
read -r -p "Install BlueZ? <y/N> " prompt
if [[ "${prompt,,}" =~ ^(y|yes|Y)$ ]]; then
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
apt-get -t bullseye-backports install -y bluez* &>/dev/null
fi
echo -e "Finished, reboot for changes to take affect"

@ -94,7 +94,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 [[ "${prompt,,}" =~ ^(y|yes|Y)$ ]]; then
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
echo -e " ⚠ ${RD}Expect Issues Without Internet${CL}"
else
echo -e " 🖧 Check Network Settings"

@ -58,7 +58,7 @@ function msg_ok() {
clear
header_info
read -r -p "Disable Enterprise Repository? <y/N> " prompt
if [[ "${prompt,,}" =~ ^(y|yes|Y)$ ]]; then
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
msg_info "Disabling Enterprise Repository"
sleep 2
sed -i "s/^deb/#deb/g" /etc/apt/sources.list.d/pbs-enterprise.list
@ -66,7 +66,7 @@ if [[ "${prompt,,}" =~ ^(y|yes|Y)$ ]]; then
fi
read -r -p "Add/Correct PBS Sources (sources.list)? <y/N> " prompt
if [[ "${prompt,,}" =~ ^(y|yes|Y)$ ]]; then
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
msg_info "Adding or Correcting PBS Sources"
cat <<EOF >/etc/apt/sources.list
deb http://ftp.debian.org/debian bullseye main contrib
@ -78,7 +78,7 @@ EOF
fi
read -r -p "Enable No-Subscription Repository? <y/N> " prompt
if [[ "${prompt,,}" =~ ^(y|yes|Y)$ ]]; then
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
msg_info "Enabling No-Subscription Repository"
cat <<EOF >>/etc/apt/sources.list
deb http://download.proxmox.com/debian/pbs bullseye pbs-no-subscription
@ -88,7 +88,7 @@ EOF
fi
read -r -p "Add (Disabled) Beta/Test Repository? <y/N> " prompt
if [[ "${prompt,,}" =~ ^(y|yes|Y)$ ]]; then
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
msg_info "Adding Beta/Test Repository and set disabled"
cat <<EOF >>/etc/apt/sources.list
# deb http://download.proxmox.com/debian/pbs bullseye pbstest
@ -98,7 +98,7 @@ EOF
fi
read -r -p "Disable Subscription Nag? <y/N> " prompt
if [[ "${prompt,,}" =~ ^(y|yes|Y)$ ]]; then
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
msg_info "Disabling Subscription Nag"
echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data.status/{s/\!//;s/active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\"; };" >/etc/apt/apt.conf.d/no-nag-script
apt --reinstall install proxmox-widget-toolkit &>/dev/null
@ -106,7 +106,7 @@ if [[ "${prompt,,}" =~ ^(y|yes|Y)$ ]]; then
fi
read -r -p "Update Proxmox Backup Server now? <y/N> " prompt
if [[ "${prompt,,}" =~ ^(y|yes|Y)$ ]]; then
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
msg_info "Updating Proxmox Backup Server (Patience)"
apt-get update &>/dev/null
apt-get -y dist-upgrade &>/dev/null
@ -114,7 +114,7 @@ if [[ "${prompt,,}" =~ ^(y|yes|Y)$ ]]; then
fi
read -r -p "Reboot Proxmox Backup Server now? <y/N> " prompt
if [[ "${prompt,,}" =~ ^(y|yes|Y)$ ]]; then
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
msg_info "Rebooting Proxmox Backup Server"
sleep 2
msg_ok "Completed Post Install Routines"

@ -69,7 +69,7 @@ pyenv install 3.11.1 &>/dev/null
pyenv global 3.11.1
msg_ok "Installed Python 3.11.1"
read -r -p "Would you like to install Home Assistant Beta? <y/N> " prompt
if [[ "${prompt,,}" =~ ^(y|yes|Y)$ ]]; then
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
msg_info "Installing Home Assistant Beta"
cat <<EOF >/etc/systemd/system/homeassistant.service
[Unit]
@ -98,7 +98,7 @@ hass
fi
read -r -p "Would you like to install ESPHome Beta? <y/N> " prompt
if [[ "${prompt,,}" =~ ^(y|yes|Y)$ ]]; then
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
msg_info "Installing ESPHome Beta"
mkdir /srv/esphome
cd /srv/esphome
@ -140,7 +140,7 @@ exec $SHELL
fi
read -r -p "Would you like to install Matter-Server (Beta)? <y/N> " prompt
if [[ "${prompt,,}" =~ ^(y|yes|Y)$ ]]; then
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
msg_info "Installing Matter Server"
apt-get install -y \
libcairo2-dev \

Loading…
Cancel
Save