mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 06:40:00 -07:00
fix: add progress messages to setup.sh for long-running install steps
Users had no visibility into what was happening during silent apt/pip installs. Added info messages before Python package installs, APT package lists update, and PostgreSQL installation.
This commit is contained in:
4
setup.sh
4
setup.sh
@@ -546,6 +546,7 @@ install_python_deps() {
|
|||||||
"meshtastic>=2.0.0" "scapy>=2.4.5" "qrcode[pil]>=7.4" "cryptography>=41.0.0" \
|
"meshtastic>=2.0.0" "scapy>=2.4.5" "qrcode[pil]>=7.4" "cryptography>=41.0.0" \
|
||||||
"gunicorn>=21.2.0" "gevent>=23.9.0" "psutil>=5.9.0"; do
|
"gunicorn>=21.2.0" "gevent>=23.9.0" "psutil>=5.9.0"; do
|
||||||
pkg_name="${pkg%%>=*}"
|
pkg_name="${pkg%%>=*}"
|
||||||
|
info " Installing ${pkg_name}..."
|
||||||
if ! $PIP install "$pkg"; then
|
if ! $PIP install "$pkg"; then
|
||||||
warn "${pkg_name} failed to install (optional - related features may be unavailable)"
|
warn "${pkg_name} failed to install (optional - related features may be unavailable)"
|
||||||
fi
|
fi
|
||||||
@@ -1687,6 +1688,7 @@ install_profiles() {
|
|||||||
|
|
||||||
# Install Python build tools (needed for venv)
|
# Install Python build tools (needed for venv)
|
||||||
apt_install python3-venv python3-pip python3-dev || true
|
apt_install python3-venv python3-pip python3-dev || true
|
||||||
|
info "Installing Python apt packages..."
|
||||||
$SUDO apt-get install -y python3-flask python3-requests python3-serial >/dev/null 2>&1 || true
|
$SUDO apt-get install -y python3-flask python3-requests python3-serial >/dev/null 2>&1 || true
|
||||||
$SUDO apt-get install -y python3-skyfield >/dev/null 2>&1 || true
|
$SUDO apt-get install -y python3-skyfield >/dev/null 2>&1 || true
|
||||||
$SUDO apt-get install -y python3-bleak >/dev/null 2>&1 || true
|
$SUDO apt-get install -y python3-bleak >/dev/null 2>&1 || true
|
||||||
@@ -1833,6 +1835,7 @@ install_custom() {
|
|||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
export NEEDRESTART_MODE=a
|
export NEEDRESTART_MODE=a
|
||||||
fi
|
fi
|
||||||
|
info "Updating APT package lists..."
|
||||||
$SUDO apt-get update -y >/dev/null 2>&1 || true
|
$SUDO apt-get update -y >/dev/null 2>&1 || true
|
||||||
apt_install python3-venv python3-pip python3-dev || true
|
apt_install python3-venv python3-pip python3-dev || true
|
||||||
fi
|
fi
|
||||||
@@ -2035,6 +2038,7 @@ do_postgres_setup() {
|
|||||||
info "PostgreSQL client (psql) not found."
|
info "PostgreSQL client (psql) not found."
|
||||||
if [[ "$OS" == "debian" ]]; then
|
if [[ "$OS" == "debian" ]]; then
|
||||||
if ask_yes_no "Install PostgreSQL via apt?" "y"; then
|
if ask_yes_no "Install PostgreSQL via apt?" "y"; then
|
||||||
|
info "Installing PostgreSQL (this may take a moment)..."
|
||||||
$SUDO apt-get install -y postgresql postgresql-client >/dev/null 2>&1 || {
|
$SUDO apt-get install -y postgresql postgresql-client >/dev/null 2>&1 || {
|
||||||
fail "Failed to install PostgreSQL"
|
fail "Failed to install PostgreSQL"
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user