diff --git a/usr/local/bin/hotspot b/usr/local/bin/hotspot index cf0bf6d..b60dad9 100755 --- a/usr/local/bin/hotspot +++ b/usr/local/bin/hotspot @@ -1,9 +1,9 @@ #!/bin/sh -e echo "Checking for required packages and installing if missing" -sudo apt update if [ $(dpkg-query -W -f='${Status}' apache2 2>/dev/null | grep -c "ok installed") -eq 0 ]; then + sudo apt update sudo apt -y install hostapd dnsmasq apache2 php fi echo "Configuring components..."