home · contact · privacy
Fix double encryption key retrieval, add sendonly mail servers.
[config] / all_new_2018 / setup_scripts / setup_web.sh
1 #!/bin/sh
2 # Set up plomlompom.com web server.
3 set -e
4
5 config_tree_prefix="${HOME}/config/all_new_2018"
6 setup_scripts_dir="${config_tree_prefix}/setup_scripts"
7 cd "${setup_scripts_dir}"
8
9 ./hardlink_etc.sh web
10 ./setup_sendonly.sh
11 sed -i "s/REPLACE_fqdn_ECALPER/$(hostname -f)/g" /etc/nginx/nginx.conf
12 sed -i "s/REPLACE_fqdn_ECALPER/$(hostname -f)/g" /etc/gitweb.conf
13 cd /var/
14 rm -rf www
15 git clone plom@core.plomlompom.com:repos/website www
16 apt -y -o Dpkg::Options::=--force-confold install nginx gitweb fcgiwrap
17 mkdir /var/public_repos
18 chown plom:plom /var/public_repos
19 iptables-restore /etc/iptables/rules.v4