X-Git-Url: https://plomlompom.com/repos/?p=config;a=blobdiff_plain;f=bookworm%2Fsetup_scripts%2Fsetup_static_website.sh;fp=bookworm%2Fsetup_scripts%2Fsetup_static_website.sh;h=de594ab7e9f88dff708fbad18d424fc7ed12d973;hp=4d290a5b3318557d09fc7b83e4b7c06c37c5c808;hb=aaecfeac7e191f5322688d749aad57de065ee120;hpb=711c892f8fb8386b5d3d8d7a869625196324a1f1 diff --git a/bookworm/setup_scripts/setup_static_website.sh b/bookworm/setup_scripts/setup_static_website.sh index 4d290a5..de594ab 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 @@ -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