X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/balance?a=blobdiff_plain;f=all_new_2018%2Fsetup_web.sh;h=661aa7416a0f1011a204fd7f20800faa7004c367;hb=60e6aeb6b26bd7b810deb8c53fe696022cb673b4;hp=517e0afbdb5c2aa429c5972b796ed5e5681c0feb;hpb=feea0cfa0ce3d3e2ad9058b5cad932fd11019d3a;p=config diff --git a/all_new_2018/setup_web.sh b/all_new_2018/setup_web.sh index 517e0af..661aa74 100755 --- a/all_new_2018/setup_web.sh +++ b/all_new_2018/setup_web.sh @@ -4,9 +4,10 @@ set -e ./hardlink_etc.sh web sed -i "s/REPLACE_fqdn_ECALPER/$(hostname -f)/g" /etc/nginx/nginx.conf sed -i "s/REPLACE_fqdn_ECALPER/$(hostname -f)/g" /etc/gitweb.conf -apt -y -o Dpkg::Options::=--force-confold install nginx gitweb fcgiwrap cd /var/ rm -rf www git clone plom@core.plomlompom.com:repos/website www -su plom -c 'cd /var/ && mkdir public_repos' +apt -y -o Dpkg::Options::=--force-confold install nginx gitweb fcgiwrap +mkdir /var/public_repos +chown plom:plom /var/public_repos iptables-restore /etc/iptables/rules.v4