From: Christian Heller Date: Wed, 25 Mar 2020 22:24:43 +0000 (+0100) Subject: Refactor. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/decks/calendar?a=commitdiff_plain;h=f0e42d4344b93ad220ff2594b3ff6d7280b2d3a7;p=config Refactor. --- 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