X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/static/gitweb.js?a=blobdiff_plain;f=bookworm%2Fsetup_scripts%2Fsetup_status.plomlompom.com.sh;h=7348a49feeeca2f87c3339731507107ed557a7c3;hb=6f0f5c64384750c3ef3e8da8e457f6efb84e5f94;hp=99de5743bfd73dad2939b07d04be418008cf01f6;hpb=bb0f8f9a5947b6a65782373a0236573ca5ed7100;p=config diff --git a/bookworm/setup_scripts/setup_status.plomlompom.com.sh b/bookworm/setup_scripts/setup_status.plomlompom.com.sh index 99de574..7348a49 100755 --- a/bookworm/setup_scripts/setup_status.plomlompom.com.sh +++ b/bookworm/setup_scripts/setup_status.plomlompom.com.sh @@ -8,13 +8,13 @@ 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}" + mirror_state="mirroring automatically from ${mirror_ip}" fi fi fi