home · contact · privacy
Fix broken variable.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 26 Sep 2023 19:36:42 +0000 (21:36 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 26 Sep 2023 19:36:42 +0000 (21:36 +0200)
bookworm/setup_scripts/setup_static_website.sh

index 4d290a5b3318557d09fc7b83e4b7c06c37c5c808..de594ab7e9f88dff708fbad18d424fc7ed12d973 100755 (executable)
@@ -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