From: Christian Heller Date: Tue, 26 Sep 2023 19:36:42 +0000 (+0200) Subject: Fix broken variable. X-Git-Url: https://plomlompom.com/repos/te"st.html?a=commitdiff_plain;h=aaecfeac7e191f5322688d749aad57de065ee120;p=config Fix broken variable. --- 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