From a692638b63c4d68a168c8c59d14372681824385b Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sat, 18 Apr 2020 22:24:52 +0200 Subject: [PATCH] Fix. --- buster/setup_scripts/setup_website.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/buster/setup_scripts/setup_website.sh b/buster/setup_scripts/setup_website.sh index a29bd4a..d1dc91d 100755 --- a/buster/setup_scripts/setup_website.sh +++ b/buster/setup_scripts/setup_website.sh @@ -19,6 +19,8 @@ gpg_key="$3" init_state="$4" old_server="$5" +# NOTE: init_state=upgrade is for migration from older stretch server setup + # Install configs, set up firewall. config_tree_prefix="${HOME}/config/buster" ./install_for_target.sh web website @@ -69,7 +71,7 @@ mkdir /var/www chown plom:plom /var/www if [ "${init_state}" = "upgrade" ]; then # This assumes the old core.plomlompom.com filesystem hierarchy. - su -lc "cd /var/repos && git clone --mirror ${old_server}:repos/website" plom + su -lc "cd /var/repos && git clone --mirror plom@core.plomlompom.com:repos/website" plom elif [ "${init_state}" = "new" ]; then su -lc "cd /var/repos && git init --bare website.git" plom fi -- 2.30.2