X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/copy_free?a=blobdiff_plain;f=bookworm%2Fsetup_scripts%2Fsetup_status.plomlompom.com.sh;h=bf358729e265de93c4277005f49a9fa6726f134e;hb=526bb867eae9c26dd00ed602e75b7ceaab53e556;hp=01356877a1ec0fc20c50fda113c98367985df66e;hpb=97d6b2856fe0f708f5386e45a8217984499a6257;p=config diff --git a/bookworm/setup_scripts/setup_status.plomlompom.com.sh b/bookworm/setup_scripts/setup_status.plomlompom.com.sh index 0135687..bf35872 100755 --- a/bookworm/setup_scripts/setup_status.plomlompom.com.sh +++ b/bookworm/setup_scripts/setup_status.plomlompom.com.sh @@ -8,17 +8,17 @@ mirror_ip="" mirror_state="not mirroring automatically" domain="status.plomlompom.com" mail="plom+status@plomlompom.com" -if [ "$#" -gt 1 ]; then +if [ "$#" -gt 0 ]; then domain="$1" - if [ "$#" -gt 2 ]; then + if [ "$#" -gt 1 ]; then mail="plom+testing@plomlompom.com" - if [ "$#" -gt 3]; then + if [ "$#" -gt 2 ]; then mirror_ip="$3" mirror_state="mirroring automatically from ${target_ip}" fi 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.)" +echo "Assuming domain ${domain} and letsencrypt support mail address ${mail} and ${mirror_state}, abort and provide as arguments in this order if other desired! (Otherwise just hit Return.)" read _ # Install configs, set up firewall.