home · contact · privacy
Add git repo serving/browsing to web server.
[config] / all_new_2018 / setup_web.sh
1 #!/bin/sh
2 set -e
3
4 ./hardlink_etc.sh web
5 sed -i "s/REPLACE_fqdn_ECALPER/$(hostname -f)/g" /etc/nginx/nginx.conf
6 sed -i "s/REPLACE_fqdn_ECALPER/$(hostname -f)/g" /etc/gitweb.conf
7 apt -y -o Dpkg::Options::=--force-confold install nginx gitweb fcgiwrap
8 iptables-restore /etc/iptables/rules.v4