From: Christian Heller Date: Sun, 22 Mar 2020 23:13:39 +0000 (+0100) Subject: Fix. X-Git-Url: https://plomlompom.com/repos/te"st.html?a=commitdiff_plain;h=1e8e425dc22b77823519753a4df977964ae472ec;p=config Fix. --- diff --git a/buster/other_files/website_hook_post-receive b/buster/other_files/website_hook_post-receive old mode 100644 new mode 100755 diff --git a/buster/setup_scripts/setup_website.sh b/buster/setup_scripts/setup_website.sh index 2910eee..d8edc61 100755 --- a/buster/setup_scripts/setup_website.sh +++ b/buster/setup_scripts/setup_website.sh @@ -40,11 +40,11 @@ mkdir /var/www chown plom:plom /var/www cp "${config_tree_prefix}/setup_scripts/prepare_to_meet_server.sh" /home/plom/ chown plom:plom /home/plom/prepare_to_meet_server.sh -su -lc plom "./prepare_to_meet_server.sh ${old_server}" +su -lc "./prepare_to_meet_server.sh ${old_server}" plom read -p'Hit Enter when you are done.' ignore -su -lc plom "cd /var/repos && git clone --mirror ${old_server}/repos/website" -cp "${config_tree_prefix}/other_files/website_hook_post-receive /var/repos/website.git/hooks/post-receive" -su -lc plom 'cd /var/www && git clone /var/repos/website.git .' +su -lc "cd /var/repos && git clone --mirror ${old_server}:repos/website" plom +cp "${config_tree_prefix}/other_files/website_hook_post-receive" /var/repos/website.git/hooks/post-receive +su -lc 'cd /var/www && git clone /var/repos/website.git .' plom # TODO: # - commit git-daemon-export-ok directly into the public repos; rename