Fix install.sh hanging on apt-get install
Add DEBIAN_FRONTEND=noninteractive to prevent dpkg from waiting for interactive prompts during package configuration.
This commit is contained in:
@@ -28,8 +28,9 @@ echo " CPU kill threshold: ${CPU_CYCLES} minutes of 95%+ CPU"
|
|||||||
echo " RAM kill threshold: <${RAM_THRESHOLD}% free memory"
|
echo " RAM kill threshold: <${RAM_THRESHOLD}% free memory"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
# Install packages
|
# Install packages (noninteractive to prevent hanging on prompts)
|
||||||
echo "[1/8] Installing packages..."
|
echo "[1/8] Installing packages..."
|
||||||
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
apt-get update -qq
|
apt-get update -qq
|
||||||
apt-get install -y -qq earlyoom monit
|
apt-get install -y -qq earlyoom monit
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user