home · contact · privacy
Fix string.
[config] / bookworm / setup_scripts / setup_status.plomlompom.com.sh
index e76b99540993a89517272646265a0f5d18afcdbb..7348a49feeeca2f87c3339731507107ed557a7c3 100755 (executable)
@@ -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 ]; then
            mirror_ip="$3"
-            mirror_state="mirroring automatically from ${target_ip}"
+            mirror_state="mirroring automatically from ${mirror_ip}"
         fi
     fi
 fi