post_install.sh aktualisiert
This commit is contained in:
@@ -3,6 +3,9 @@
|
|||||||
# ==========================================
|
# ==========================================
|
||||||
# POST-INSTALL INTERNET TOOLBOX
|
# POST-INSTALL INTERNET TOOLBOX
|
||||||
# ==========================================
|
# ==========================================
|
||||||
|
# Interaktives Launcher-Menü für Skripte aus dem Internet
|
||||||
|
# Mit Farben, Einrückung und Reihenfolge
|
||||||
|
# ==========================================
|
||||||
|
|
||||||
# Farben
|
# Farben
|
||||||
RED="\033[31m"
|
RED="\033[31m"
|
||||||
@@ -29,16 +32,24 @@ SCRIPTS["Set PVE-Mail"]="https://gitea.vmd55888.de/manuel.maier/pve-pbs-setup/ra
|
|||||||
SCRIPTS["Set PBS-Mail"]="https://gitea.vmd55888.de/manuel.maier/pve-pbs-setup/raw/branch/main/setup-email-pbs.sh"
|
SCRIPTS["Set PBS-Mail"]="https://gitea.vmd55888.de/manuel.maier/pve-pbs-setup/raw/branch/main/setup-email-pbs.sh"
|
||||||
SCRIPTS["Set CPU Scaling Governor"]="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/scaling-governor.sh"
|
SCRIPTS["Set CPU Scaling Governor"]="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/scaling-governor.sh"
|
||||||
SCRIPTS["Intel e1000e Offload Fix"]="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/nic-offloading-fix.sh"
|
SCRIPTS["Intel e1000e Offload Fix"]="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/nic-offloading-fix.sh"
|
||||||
|
SCRIPTS["Proxmox VE Post Install"]="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/post-pve-install.sh"
|
||||||
|
|
||||||
# Reihenfolge festlegen
|
# Reihenfolge festlegen
|
||||||
ORDER=("Host & SSD Seriennummern" "Set PVE-Mail" "Set PBS-Mail" "Set CPU Scaling Governor" "Intel e1000e Offload Fix")
|
ORDER=(
|
||||||
|
"Host & SSD Seriennummern"
|
||||||
|
"Set PVE-Mail"
|
||||||
|
"Set PBS-Mail"
|
||||||
|
"Set CPU Scaling Governor"
|
||||||
|
"Intel e1000e Offload Fix"
|
||||||
|
"Proxmox VE Post Install"
|
||||||
|
)
|
||||||
|
|
||||||
# Funktion für Header
|
# Funktion für Header
|
||||||
print_header() {
|
print_header() {
|
||||||
clear
|
clear
|
||||||
echo -e "${CYAN}${BOLD}${INDENT}======================================${RESET}"
|
echo -e "${CYAN}${BOLD}${INDENT}==============================================${RESET}"
|
||||||
echo -e "${CYAN}${BOLD}${INDENT} POST-INSTALL TOOLBOX ${RESET}"
|
echo -e "${CYAN}${BOLD}${INDENT} POST-INSTALL INTERNET TOOLBOX ${RESET}"
|
||||||
echo -e "${CYAN}${BOLD}${INDENT}======================================${RESET}"
|
echo -e "${CYAN}${BOLD}${INDENT}==============================================${RESET}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Menü starten
|
# Menü starten
|
||||||
@@ -50,7 +61,7 @@ while true; do
|
|||||||
i=1
|
i=1
|
||||||
declare -A INDEX_MAP
|
declare -A INDEX_MAP
|
||||||
for key in "${ORDER[@]}"; do
|
for key in "${ORDER[@]}"; do
|
||||||
echo -e "${INDENT}${RED}$i)${RESET} $key"
|
echo -e "${INDENT}${BLUE}$i)${RESET} $key"
|
||||||
INDEX_MAP[$i]="$key"
|
INDEX_MAP[$i]="$key"
|
||||||
((i++))
|
((i++))
|
||||||
done
|
done
|
||||||
@@ -73,6 +84,7 @@ while true; do
|
|||||||
echo -e "${YELLOW}${INDENT}Von: $url${RESET}"
|
echo -e "${YELLOW}${INDENT}Von: $url${RESET}"
|
||||||
echo -e "${CYAN}${INDENT}------------------------------------${RESET}\n"
|
echo -e "${CYAN}${INDENT}------------------------------------${RESET}\n"
|
||||||
|
|
||||||
|
# Temporäre Datei
|
||||||
tmpfile=$(mktemp)
|
tmpfile=$(mktemp)
|
||||||
curl -sSL "$url" -o "$tmpfile"
|
curl -sSL "$url" -o "$tmpfile"
|
||||||
|
|
||||||
@@ -83,6 +95,7 @@ while true; do
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Script ausführen
|
||||||
bash "$tmpfile"
|
bash "$tmpfile"
|
||||||
rm -f "$tmpfile"
|
rm -f "$tmpfile"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user