expect_n_args 1 "(server)" "$@"
server="$1"
+# If we already knew that host …
+ssh-keygen -f "/home/plom/.ssh/known_hosts" -R "${server}"
+
# So we're only asked once …
eval $(ssh-agent)
ssh-add
if [ -z "$1" ]; then
domain="status.plomlompom.com"
+ mail="plom+status@plomlompom.com"
+elif [ "$#" -lt 2 ]; then
+ domain="$1"
+ mail="plom+testing@plomlompom.com"
else
domain="$1"
+ mail="$2"
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_for_target.sh status.plomlompom.com
./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" status.plomlompom.com
if [ -z "$1" ]; then
domain="tube.plomlompom.com"
+ mail="plom+tube@plomlompom.com"
+elif [ "$#" -lt 2 ]; then
+ domain="$1"
+ mail="plom+testing@plomlompom.com"
else
domain="$1"
+ mail="$2"
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_for_target.sh tube.plomlompom.com
./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" tube.plomlompom.com