X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=bookworm%2Fsetup_scripts%2Fsetup_tube.plomlompom.com.sh;h=566a6b544f7c4fa43b49349b4111d5941172989c;hb=f628496cf28b4db65ee965218e62989d51dd7aed;hp=efb0c0672dea48ede4a96e48f319aa455ffa28f8;hpb=174acd1989d140882900b51dac88a54283e0333f;p=config diff --git a/bookworm/setup_scripts/setup_tube.plomlompom.com.sh b/bookworm/setup_scripts/setup_tube.plomlompom.com.sh index efb0c06..566a6b5 100755 --- a/bookworm/setup_scripts/setup_tube.plomlompom.com.sh +++ b/bookworm/setup_scripts/setup_tube.plomlompom.com.sh @@ -4,11 +4,19 @@ set -e expect_setup_finished_file setup_web_has_been_run setup_web.sh -if [ -z "$1"]; then +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