mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-28 04:06:54 +00:00
Update install_coral_pve.sh
This commit is contained in:
parent
6375d43ce7
commit
117745cb05
@ -16,26 +16,23 @@
|
|||||||
# ==========================================================
|
# ==========================================================
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Configuration ============================================
|
# Configuration ============================================
|
||||||
UTILS_URL="https://raw.githubusercontent.com/MacRimi/ProxMenux/main/scripts/utils.sh"
|
REPO_URL="https://raw.githubusercontent.com/MacRimi/ProxMenux/main"
|
||||||
BASE_DIR="/usr/local/share/proxmenux"
|
BASE_DIR="/usr/local/share/proxmenux"
|
||||||
CACHE_FILE="$BASE_DIR/cache.json"
|
UTILS_FILE="$BASE_DIR/utils.sh"
|
||||||
CONFIG_FILE="$BASE_DIR/config.json"
|
|
||||||
VENV_PATH="/opt/googletrans-env"
|
VENV_PATH="/opt/googletrans-env"
|
||||||
|
|
||||||
if ! source <(curl -sSf "$UTILS_URL"); then
|
if [[ -f "$UTILS_FILE" ]]; then
|
||||||
echo "$(translate 'Error: Could not load utils.sh from') $UTILS_URL"
|
source "$UTILS_FILE"
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
initialize_cache
|
|
||||||
load_language
|
load_language
|
||||||
|
initialize_cache
|
||||||
# ==========================================================
|
# ==========================================================
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Prompt before installation
|
# Prompt before installation
|
||||||
pre_install_prompt() {
|
pre_install_prompt() {
|
||||||
if ! whiptail --title "Coral TPU Installation" --yesno "Installing Coral TPU drivers requires rebooting the server after installation. Do you want to proceed?" 8 60; then
|
if ! whiptail --title "Coral TPU Installation" --yesno "Installing Coral TPU drivers requires rebooting the server after installation. Do you want to proceed?" 8 60; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user