X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;ds=sidebyside;f=bookworm%2Fsetup_scripts%2Fsetup_static_website.sh;h=1b5da97db50ed9dffb452cb78497fdd8fc09128a;hb=c13f232b5eb78262d272df8b9e503370bc2d1b4f;hp=4d290a5b3318557d09fc7b83e4b7c06c37c5c808;hpb=711c892f8fb8386b5d3d8d7a869625196324a1f1;p=config diff --git a/bookworm/setup_scripts/setup_static_website.sh b/bookworm/setup_scripts/setup_static_website.sh index 4d290a5..1b5da97 100755 --- a/bookworm/setup_scripts/setup_static_website.sh +++ b/bookworm/setup_scripts/setup_static_website.sh @@ -4,7 +4,7 @@ set -e expect_setup_finished_file setup_web_has_been_run setup_web.sh -expect_n_args 1 "(website template, i.e. status.plomlompom, tube.plomlompom.com …)" "$@" +expect_n_args 1 "(website template, i.e. status.plomlompom.com, tube.plomlompom.com …)" "$@" website_template="$1" shift 1 @@ -15,7 +15,7 @@ mail="plom+webmaster@plomlompom.com" if [ "$#" -gt 0 ]; then domain="$1" if [ "$#" -gt 1 ]; then - mail="plom+testing@plomlompom.com" + mail="$2" if [ "$#" -gt 2 ]; then mirror_ip="$3" mirror_state="mirroring automatically from ${mirror_ip}" @@ -53,7 +53,7 @@ rm /etc/nginx/sites-enabled/default # Prepare NGINX. sed -i "s/REPLACE_fqdn_ECALPER/${domain}/g" "/etc/nginx/sites-available/${website_template}.nginx" -ln -s "/etc/nginx/sites-available/{website_template}.nginx" "/etc/nginx/sites-enabled/${website_template}.nginx" +ln -s "/etc/nginx/sites-available/${website_template}.nginx" "/etc/nginx/sites-enabled/${website_template}.nginx" service nginx restart