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
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