home
·
contact
·
privacy
projects
/
config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update Firefox ESR version.
[config]
/
bookworm
/
setup_scripts
/
setup_static_website.sh
diff --git
a/bookworm/setup_scripts/setup_static_website.sh
b/bookworm/setup_scripts/setup_static_website.sh
old mode 100644
(file)
new mode 100755
(executable)
index
4d290a5
..
1ab6a18
--- a/
bookworm/setup_scripts/setup_static_website.sh
+++ b/
bookworm/setup_scripts/setup_static_website.sh
@@
-4,18
+4,18
@@
set -e
expect_setup_finished_file setup_web_has_been_run setup_web.sh
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
mirror_ip=""
website_template="$1"
shift 1
mirror_ip=""
-mirror_state="not mirroring automatically"
+mirror_state="not mirroring automatically
, since no IP given
"
domain="${website_template}"
mail="plom+webmaster@plomlompom.com"
if [ "$#" -gt 0 ]; then
domain="$1"
if [ "$#" -gt 1 ]; then
domain="${website_template}"
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}"
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"
# 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
service nginx restart