X-Git-Url: https://plomlompom.com/repos/?p=config;a=blobdiff_plain;f=buster%2Fsetup_scripts%2Fsetup_website.sh;h=9394a94820b1c77342d3e1b7da9ebd8ba6c87b4f;hp=f781905cc6ce4ea10770c7bde7cf55a66d26ea91;hb=1d6d8c874e12c47572c25424aaef64e3ec14197a;hpb=6b847de2430565e7cd7b654b5cffb6aa1b64a44b diff --git a/buster/setup_scripts/setup_website.sh b/buster/setup_scripts/setup_website.sh index f781905..9394a94 100755 --- a/buster/setup_scripts/setup_website.sh +++ b/buster/setup_scripts/setup_website.sh @@ -9,7 +9,7 @@ if [ ! "$4" = "copy" ] && [ ! "$4" = "new" ] && [ ! "$4" = "upgrade" ]; then echo "Need init state to be either 'copy' or 'new' or 'upgrade'" false fi -if [ ! "$4" = "new" ] and [ "$#" -ne 5 ]; then +if [ ! "$4" = "new" ] && [ "$#" -ne 5 ]; then echo "With init state != 'new' need fifth argument old server IP." false fi @@ -71,7 +71,7 @@ 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 elif [ "${init_state}" = "new" ]; then - su -lc "cd /var/repos && git init --bare website" plom + su -lc "cd /var/repos && git init --bare website.git" plom fi # TODO: find out whether this can be part of cloned repo …? cp "${config_tree_prefix}/other_files/website_hook_post-receive" /var/repos/website.git/hooks/post-receive