init
This commit is contained in:
commit
01910e3f75
18 changed files with 6676 additions and 0 deletions
22
Makefile
Normal file
22
Makefile
Normal file
|
@ -0,0 +1,22 @@
|
|||
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/
|
Loading…
Add table
Add a link
Reference in a new issue