mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-28 04:06:54 +00:00
Update install_proxmenux.sh
This commit is contained in:
parent
f1930b4249
commit
b7b147714a
@ -33,6 +33,7 @@
|
|||||||
# the system for running ProxMenux efficiently.
|
# the system for running ProxMenux efficiently.
|
||||||
# ==========================================================
|
# ==========================================================
|
||||||
|
|
||||||
|
|
||||||
# Configuration ============================================
|
# Configuration ============================================
|
||||||
REPO_URL="https://raw.githubusercontent.com/MacRimi/ProxMenux/main"
|
REPO_URL="https://raw.githubusercontent.com/MacRimi/ProxMenux/main"
|
||||||
UTILS_URL="https://raw.githubusercontent.com/MacRimi/ProxMenux/main/scripts/utils.sh"
|
UTILS_URL="https://raw.githubusercontent.com/MacRimi/ProxMenux/main/scripts/utils.sh"
|
||||||
@ -49,6 +50,7 @@ if ! source <(curl -sSf "$UTILS_URL"); then
|
|||||||
echo "$(translate 'Error: Could not load utils.sh from') $UTILS_URL"
|
echo "$(translate 'Error: Could not load utils.sh from') $UTILS_URL"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ==========================================================
|
# ==========================================================
|
||||||
|
|
||||||
# Verify that it's run as root
|
# Verify that it's run as root
|
||||||
@ -57,10 +59,12 @@ if [ "$(id -u)" -ne 0 ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
show_proxmenu_logo
|
show_proxmenu_logo
|
||||||
|
|
||||||
# Display installation confirmation
|
|
||||||
echo -e "${YW}To function correctly, ProxMenu needs to install the following components:${CL}"
|
# Display installation information
|
||||||
|
echo -e "${YW}ProxMenu will install the following components:${CL}"
|
||||||
echo -e "${TAB}- whiptail (if not already installed)"
|
echo -e "${TAB}- whiptail (if not already installed)"
|
||||||
echo -e "${TAB}- curl (if not already installed)"
|
echo -e "${TAB}- curl (if not already installed)"
|
||||||
echo -e "${TAB}- jq (if not already installed)"
|
echo -e "${TAB}- jq (if not already installed)"
|
||||||
@ -68,13 +72,18 @@ echo -e "${TAB}- Python 3 (if not already installed)"
|
|||||||
echo -e "${TAB}- Virtual environment for Google Translate"
|
echo -e "${TAB}- Virtual environment for Google Translate"
|
||||||
echo -e "${TAB}- ProxMenu scripts and configuration files"
|
echo -e "${TAB}- ProxMenu scripts and configuration files"
|
||||||
echo
|
echo
|
||||||
read -p "Do you want to proceed with the installation? (y/n) " -n 1 -r
|
|
||||||
echo
|
# Ask for user confirmation
|
||||||
if [[ ! $REPLY =~ ^[Yy]$ ]]
|
while true; do
|
||||||
then
|
echo -n "Do you want to proceed with the installation? (y/n): "
|
||||||
msg_warn "Installation cancelled."
|
read -r REPLY
|
||||||
exit 1
|
case $REPLY in
|
||||||
fi
|
[Yy]* ) break;;
|
||||||
|
[Nn]* ) msg_warn "Installation cancelled."; exit 1;;
|
||||||
|
* ) echo "Please answer yes (y) or no (n).";;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
# Check system dependencies
|
# Check system dependencies
|
||||||
msg_info "Checking system dependencies..."
|
msg_info "Checking system dependencies..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user