mirror of
https://gitlab.com/hacklab01/pivilion.git
synced 2026-02-03 23:30:48 +00:00
new scripts and sort /etc
This commit is contained in:
parent
5cd7ccb055
commit
e1f5d4bb09
5 changed files with 81 additions and 24 deletions
|
|
@ -5,11 +5,12 @@ if [ $(dpkg-query -W -f='${Status}' apache2 2>/dev/null | grep -c "ok installed"
|
|||
then
|
||||
sudo apt update
|
||||
sudo apt -y install hostapd dnsmasq apache2 php
|
||||
sudo cp -rT /home/pi/pivilion/config/html /var/www/html/pivilion/gen
|
||||
fi
|
||||
echo "Configuring components..."
|
||||
sudo cp -f /home/pi/pivilion/config/hostapd.hotspot /etc/hostapd/hostapd.conf
|
||||
sudo cp -f /home/pi/pivilion/config/dnsmasq.hotspot /etc/dnsmasq.conf
|
||||
sudo cp -rT /home/pi/pivilion/config/html /var/www/html/pivilion/gen
|
||||
sudo cp /home/pi/pivilion/config/html/.htaccess /var/www/html/pivilion/gen/.htaccess
|
||||
sudo chown -R www-data:www-data /var/www/html
|
||||
sudo chown root:www-data /var/www/html/pivilion/gen/.htaccess
|
||||
sudo cp -f /home/pi/pivilion/config/rc.hotspot /etc/rc.local
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue