home · contact · privacy
Fix if conditions.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 26 Sep 2023 18:19:02 +0000 (20:19 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 26 Sep 2023 18:19:02 +0000 (20:19 +0200)
bookworm/setup_scripts/setup_status.plomlompom.com.sh

index 99de5743bfd73dad2939b07d04be418008cf01f6..bf358729e265de93c4277005f49a9fa6726f134e 100755 (executable)
@@ -8,11 +8,11 @@ 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