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