From 526bb867eae9c26dd00ed602e75b7ceaab53e556 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Tue, 26 Sep 2023 20:19:02 +0200
Subject: [PATCH] Fix if conditions.

---
 bookworm/setup_scripts/setup_status.plomlompom.com.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bookworm/setup_scripts/setup_status.plomlompom.com.sh b/bookworm/setup_scripts/setup_status.plomlompom.com.sh
index 99de574..bf35872 100755
--- a/bookworm/setup_scripts/setup_status.plomlompom.com.sh
+++ b/bookworm/setup_scripts/setup_status.plomlompom.com.sh
@@ -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
-- 
2.30.2