home · contact · privacy
Fix.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 22 Mar 2020 23:13:39 +0000 (00:13 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 22 Mar 2020 23:13:39 +0000 (00:13 +0100)
buster/other_files/website_hook_post-receive [changed mode: 0644->0755]
buster/setup_scripts/setup_website.sh

old mode 100644 (file)
new mode 100755 (executable)
index 2910eee52c8e377724d1bdffe282b9220fcf9a64..d8edc610174d6fa15c81c2b2d52f984bf79e6827 100755 (executable)
@@ -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
 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
 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
 
 # TODO:
 # - commit git-daemon-export-ok directly into the public repos; rename