Skip to content

Commit

Permalink
check if docker and ip commands are here (MatthiasLohr#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasLohr committed Oct 8, 2018
1 parent c2d0288 commit 8bccc02
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions f5fpc-vpn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ CONTAINER_NAME="f5fpc-vpn"
F5FPC_ARGS=""
keep_running=1

for cmd in docker ip ; do
which "$cmd" > /dev/null 2> /dev/null
if [ "$?" != "0" ] ; then
echo "Unsatisfied dependencies: $cmd command not found!"
exit 1
fi
done

show_help() {
cat << EOF
Usage: $0 <MODE> [<PARAMETERS...>]
Expand Down

0 comments on commit 8bccc02

Please sign in to comment.