mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
code refactoring
This commit is contained in:
parent
6d2a8a2ec4
commit
7305fa4f0a
6 changed files with 4 additions and 43 deletions
|
@ -120,12 +120,6 @@ msg_ok "Installed InfluxDB"
|
|||
|
||||
read -r -p "Would you like to add Telegraf? <y/N> " prompt
|
||||
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
|
||||
TELEGRAF="Y"
|
||||
else
|
||||
TELEGRAF="N"
|
||||
fi
|
||||
|
||||
if [[ $TELEGRAF == "Y" ]]; then
|
||||
msg_info "Installing Telegraf"
|
||||
$STD apt-get install -y telegraf
|
||||
msg_ok "Installed Telegraf"
|
||||
|
|
|
@ -102,12 +102,6 @@ msg_ok "Installed k0s Kubernetes"
|
|||
|
||||
read -r -p "Would you like to add Helm Package Manager? <y/N> " prompt
|
||||
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
|
||||
HELM="Y"
|
||||
else
|
||||
HELM="N"
|
||||
fi
|
||||
|
||||
if [[ $HELM == "Y" ]]; then
|
||||
msg_info "Installing Helm"
|
||||
$STD bash <(curl -sSLf https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3)
|
||||
msg_ok "Installed Helm"
|
||||
|
|
|
@ -100,12 +100,6 @@ msg_ok "Installed MariaDB"
|
|||
|
||||
read -r -p "Would you like to add Adminer? <y/N> " prompt
|
||||
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
|
||||
ADMINER="Y"
|
||||
else
|
||||
ADMINER="N"
|
||||
fi
|
||||
|
||||
if [[ $ADMINER == "Y" ]]; then
|
||||
msg_info "Installing Adminer"
|
||||
$STD apt install -y adminer
|
||||
$STD a2enconf adminer
|
||||
|
|
|
@ -207,12 +207,6 @@ msg_ok "Installed PostgreSQL"
|
|||
|
||||
read -r -p "Would you like to add Adminer? <y/N> " prompt
|
||||
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
|
||||
ADMINER="Y"
|
||||
else
|
||||
ADMINER="N"
|
||||
fi
|
||||
|
||||
if [[ $ADMINER == "Y" ]]; then
|
||||
msg_info "Installing Adminer"
|
||||
$STD apt install -y adminer
|
||||
$STD sudo a2enconf adminer
|
||||
|
|
|
@ -149,12 +149,6 @@ msg_ok "Installed Python3"
|
|||
|
||||
read -r -p "Would you like to add Coral Edge TPU support? <y/N> " prompt
|
||||
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
|
||||
CORAL="Y"
|
||||
else
|
||||
CORAL="N"
|
||||
fi
|
||||
|
||||
if [[ $CORAL == "Y" ]]; 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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue