From f0e42d4344b93ad220ff2594b3ff6d7280b2d3a7 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 25 Mar 2020 23:24:43 +0100 Subject: [PATCH] Refactor. --- buster/setup_scripts/setup_website.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/buster/setup_scripts/setup_website.sh b/buster/setup_scripts/setup_website.sh index 035d852..6288a27 100755 --- a/buster/setup_scripts/setup_website.sh +++ b/buster/setup_scripts/setup_website.sh @@ -47,10 +47,12 @@ cp "${config_tree_prefix}/other_files/website_hook_post-receive" /var/repos/webs su -lc 'cd /var/www && git clone /var/repos/website.git .' plom # Set up plomlombot. -mkdir /var/www/html/irclogs -chown plom:plom /var/www/html/irclogs -mkdir /var/www/irclogs_pw -chown plom:plom /var/www/irclogs_pw +irclogs_dir=/var/www/html/irclogs +irclogs_pw_dir=/var/www/irclogs_pw +mkdir -p "${irclogs_dir}" +chown -R plom:plom "${irclogs_dir}" +mkdir -p "${irclogs_pw_dir}" +chown -R plom:plom "${irclogs_pw_dir}" su -lc "cd /var/repos && git clone --mirror https://plomlompom.com/repos/clone/plomlombot-irc" plom su -lc "touch /var/repos/plomlombot-irc.git/git-daemon-export-ok" plom cp "${config_tree_prefix}/other_files/plomlombot_hook_post-receive" /var/repos/plomlombot-irc.git/hooks/post-receive -- 2.30.2