From 1e8e425dc22b77823519753a4df977964ae472ec Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Mon, 23 Mar 2020 00:13:39 +0100 Subject: [PATCH] Fix. --- buster/other_files/website_hook_post-receive | 0 buster/setup_scripts/setup_website.sh | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 buster/other_files/website_hook_post-receive 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 -- 2.30.2