From: Christian Heller Date: Sat, 18 Apr 2020 20:24:52 +0000 (+0200) Subject: Fix. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/decks/tasks?a=commitdiff_plain;h=a692638b63c4d68a168c8c59d14372681824385b;p=config Fix. --- 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