From 117745cb05590a0ba0eb1bc2dec8ab8e31936f28 Mon Sep 17 00:00:00 2001 From: MacRimi <123239993+MacRimi@users.noreply.github.com> Date: Sun, 2 Feb 2025 10:13:00 +0100 Subject: [PATCH] Update install_coral_pve.sh --- scripts/install_coral_pve.sh | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/scripts/install_coral_pve.sh b/scripts/install_coral_pve.sh index eff7e95..f953b29 100644 --- a/scripts/install_coral_pve.sh +++ b/scripts/install_coral_pve.sh @@ -16,26 +16,23 @@ # ========================================================== - # 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" -CACHE_FILE="$BASE_DIR/cache.json" -CONFIG_FILE="$BASE_DIR/config.json" +UTILS_FILE="$BASE_DIR/utils.sh" VENV_PATH="/opt/googletrans-env" -if ! source <(curl -sSf "$UTILS_URL"); then - echo "$(translate 'Error: Could not load utils.sh from') $UTILS_URL" - exit 1 +if [[ -f "$UTILS_FILE" ]]; then + source "$UTILS_FILE" fi -initialize_cache load_language - +initialize_cache # ========================================================== + # Prompt before installation 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