home · contact · privacy
Fix web server setup scripts.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 10 Dec 2018 01:44:50 +0000 (02:44 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 10 Dec 2018 01:44:50 +0000 (02:44 +0100)
all_new_2018/setup_plomlombot.sh
all_new_2018/setup_web.sh

index cf8a6797149d27fc7984f806204683ac6ddc15ae..547de448cf39590f08281a6f62f86a4be2538fa3 100755 (executable)
@@ -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
index 517e0afbdb5c2aa429c5972b796ed5e5681c0feb..e81b1053f816c0184f5f4def2afaefcaff071138 100755 (executable)
@@ -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