From aaecfeac7e191f5322688d749aad57de065ee120 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Tue, 26 Sep 2023 21:36:42 +0200 Subject: [PATCH] Fix broken variable. --- bookworm/setup_scripts/setup_static_website.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2