Skip to content

Commit

Permalink
Simplification of current gateway address check condition
Browse files Browse the repository at this point in the history
  • Loading branch information
6eh01der authored Jul 13, 2021
1 parent 9b36390 commit 6aab65b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fogw.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

#Version: 1.1.5
#Version: 1.1.6
#https://github.com/IBeholderI/FailoverGateway/blob/main/fogw.sh
#*********************************************************************
# Configuration
Expand Down Expand Up @@ -74,8 +74,7 @@ off)
fi
;;
esac
elif [ "$CURT_GW" != "$DEF_GW" ] && [ "$CURT_GW" != "$BCK_GW" ]
then
else
echo "fogw configured gateways are different then currently used. Current default gateway must be empty or the same as default or backup gateway placed in fogw config or maybe fogw gateways config is wrong."
exit 1
fi

0 comments on commit 6aab65b

Please sign in to comment.