From: Christian Heller Date: Mon, 10 Dec 2018 01:44:50 +0000 (+0100) Subject: Fix web server setup scripts. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/day?a=commitdiff_plain;h=d69e799e8f4a684cb41c6f0168e16927d18e1484;p=config Fix web server setup scripts. --- diff --git a/all_new_2018/setup_plomlombot.sh b/all_new_2018/setup_plomlombot.sh index cf8a679..547de44 100755 --- a/all_new_2018/setup_plomlombot.sh +++ b/all_new_2018/setup_plomlombot.sh @@ -10,5 +10,5 @@ systemctl enable /etc/systemd/system/plomlombot.service service plomlombot start mkdir -p /var/www/html/irclogs plomlompomtest_dir=/home/plom/plomlombot_db/6f322d574618816aa2d6d1ceb4fd2551/789a38c5af11bb71833d89cd74387fcb/logs -mkdir -p "${plomlompomtest_dir}" -ln "${plomlompomtest_dir}" /var/www/html/irclogs/plomlompomtest +su plom -c "cd && mkdir -p ${plomlompomtest_dir}" +ln -s "${plomlompomtest_dir}" /var/www/html/irclogs/plomlompomtest diff --git a/all_new_2018/setup_web.sh b/all_new_2018/setup_web.sh index 517e0af..e81b105 100755 --- a/all_new_2018/setup_web.sh +++ b/all_new_2018/setup_web.sh @@ -8,5 +8,6 @@ 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' +mkdir /var/public_repos +chown plom:plom /var/public_repos iptables-restore /etc/iptables/rules.v4