From d69e799e8f4a684cb41c6f0168e16927d18e1484 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Mon, 10 Dec 2018 02:44:50 +0100 Subject: [PATCH] Fix web server setup scripts. --- all_new_2018/setup_plomlombot.sh | 4 ++-- all_new_2018/setup_web.sh | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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 -- 2.30.2