mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-18 03:26:17 +00:00
Update install_proxmenux.sh
This commit is contained in:
@@ -727,7 +727,17 @@ install_normal_version() {
|
||||
update_config "jq" "already_installed"
|
||||
fi
|
||||
|
||||
BASIC_DEPS=("dialog" "curl" "git")
|
||||
|
||||
|
||||
|
||||
|
||||
BASIC_DEPS=("dialog" "curl")
|
||||
|
||||
if [ -z "${APT_UPDATED:-}" ]; then
|
||||
apt-get update -y > /dev/null 2>&1 || true
|
||||
APT_UPDATED=1
|
||||
fi
|
||||
|
||||
for pkg in "${BASIC_DEPS[@]}"; do
|
||||
if ! dpkg -l | grep -qw "$pkg"; then
|
||||
if apt-get install -y "$pkg" > /dev/null 2>&1; then
|
||||
@@ -742,8 +752,41 @@ install_normal_version() {
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
if ! command -v git > /dev/null 2>&1; then
|
||||
msg_info "Installing git (required to clone the ProxMenux repository)."
|
||||
|
||||
|
||||
if [ -z "${APT_UPDATED:-}" ]; then
|
||||
apt-get update -y > /dev/null 2>&1 || true
|
||||
APT_UPDATED=1
|
||||
fi
|
||||
|
||||
if ! apt-get install -y git > /dev/null 2>&1; then
|
||||
msg_error "Failed to install git. Please run 'apt-get install git' manually and rerun the installer."
|
||||
update_config "git" "failed"
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
||||
if ! command -v git > /dev/null 2>&1; then
|
||||
msg_error "Git is still not available after installation. Aborting to avoid a broken setup."
|
||||
update_config "git" "failed"
|
||||
return 1
|
||||
fi
|
||||
|
||||
update_config "git" "installed"
|
||||
else
|
||||
update_config "git" "already_installed"
|
||||
fi
|
||||
|
||||
msg_ok "jq, dialog, curl and git installed successfully."
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
((current_step++))
|
||||
|
||||
show_progress $current_step $total_steps "Install ProxMenux repository"
|
||||
|
||||
Reference in New Issue
Block a user