Update usr/local/bin/hotspot

This commit is contained in:
v3d 2022-05-04 21:40:02 +00:00
parent 4453731974
commit f9d0816b46

View File

@ -1,9 +1,9 @@
#!/bin/sh -e #!/bin/sh -e
echo "Checking for required packages and installing if missing" 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 ]; if [ $(dpkg-query -W -f='${Status}' apache2 2>/dev/null | grep -c "ok installed") -eq 0 ];
then then
sudo apt update
sudo apt -y install hostapd dnsmasq apache2 php sudo apt -y install hostapd dnsmasq apache2 php
fi fi
echo "Configuring components..." echo "Configuring components..."