home
·
contact
·
privacy
projects
/
config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix read missing argument bug.
[config]
/
bookworm
/
setup_scripts
/
setup_status.plomlompom.com.sh
diff --git
a/bookworm/setup_scripts/setup_status.plomlompom.com.sh
b/bookworm/setup_scripts/setup_status.plomlompom.com.sh
index d5e6d180b0a30ec0b681e5a3cf257adea1807dc1..30f81d7a01f571b7aba0d28e9418f490ca7e33ca 100755
(executable)
--- a/
bookworm/setup_scripts/setup_status.plomlompom.com.sh
+++ b/
bookworm/setup_scripts/setup_status.plomlompom.com.sh
@@
-4,14
+4,22
@@
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
-if [ -z "$1"]; then
+if [ -z "$1"
]; then
domain="status.plomlompom.com"
domain="status.plomlompom.com"
+ mail="plom+status@plomlompom.com"
+elif [ "$#" -lt 2 ]; then
+ domain="$1"
+ mail="plom+testing@plomlompom.com"
else
domain="$1"
else
domain="$1"
+ mail="$2"
fi
fi
+echo "Assuming domain ${domain} and letsencrypt support mail address ${mail}, abort and provide as arguments in this order if other desired! (Otherwise just hit Return.)"
+read _
+
# Install configs, set up firewall.
# Install configs, set up firewall.
-./install_for_target.sh stat
ic_websites
-./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" stat
ic_websites
+./install_for_target.sh stat
us.plomlompom.com
+./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" stat
us.plomlompom.com
nft -f /etc/nftables.conf
# Set up letsencrypt certificate. TODO: Is it auto-renewed?
nft -f /etc/nftables.conf
# Set up letsencrypt certificate. TODO: Is it auto-renewed?