22 lines
814 B
Makefile
22 lines
814 B
Makefile
install:
|
|
@echo create directories
|
|
install -o0 -g0 -d /var/www/tuer.kraut.space /etc/tuer3.0 /etc/nsd/zones
|
|
|
|
@echo setup network
|
|
install -o0 -g0 -m644 hostapd.conf /etc/hostapd/hostapd.conf
|
|
install -o0 -g0 -m644 networkd/* /etc/systemd/network/
|
|
systemctl restart systemd-networkd.service hostapd.service
|
|
|
|
@echo setup nsd dns server
|
|
install -o0 -g0 nsd/nsd.conf.d/* /etc/nsd/nsd.conf.d/
|
|
install -o0 -g0 nsd/zones/* /etc/nsd/zones/
|
|
|
|
@echo install nginx
|
|
rm -f /etc/nginx/sites-enabled/default
|
|
install -o0 -g0 nginx.site.conf /etc/nginx/sites-available/tuer.kraut.space
|
|
rm -f /etc/nginx/sites-enabled/tuer.kraut.space
|
|
ln -s ../sites-available/tuer.kraut.space /etc/nginx/sites-enabled/tuer.kraut.space
|
|
systemctl restart nginx.service
|
|
|
|
@echo deploy web directory
|
|
cp -r src/* /var/www/tuer.kraut.space/
|