home · contact · privacy
Fix.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 15 Apr 2020 19:59:23 +0000 (21:59 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 15 Apr 2020 19:59:23 +0000 (21:59 +0200)
buster/setup_scripts/setup_website.sh

index aefb9a8fa20453eb37b9f8ec0c44a934428bb03c..08739032c91debb9f010ccd5c83325d4e985c556 100755 (executable)
@@ -5,7 +5,7 @@ if [ "$#" -ne 5 ]; then
     echo 'Need domain name and mail and old server IP and key ID and init state (old, new?) as argument.'
     false
 fi
     echo 'Need domain name and mail and old server IP and key ID and init state (old, new?) as argument.'
     false
 fi
-if [ ! "$5" = "old" ] && [ ! "$1" = "new" ]; then
+if [ ! "$5" = "old" ] && [ ! "$5" = "new" ]; then
     echo "Need init state to be either 'old' or 'new'"
     false
 fi
     echo "Need init state to be either 'old' or 'new'"
     false
 fi