container-openvpn/bin/openvpn.sh
Kyle Manna 023cfe6596 openvpn.sh: Add wrapper script
* Add the beginning of a wrapper script that will handle cert generation
  and OpenVPN invocation.
2014-06-03 20:58:13 -07:00

26 lines
288 B
Bash
Executable File

#!/bin/bash
#
# OpenVPN + Docker Wrapper Script
#
set -ex
abort() {
echo "Error: $@"
exit 1
}
if [ $# -lt 1 ]; then
abort "No command specified"
fi
# Read arguments from command line
cmd=$1
shift
case "$cmd" in
*)
abort "Unknown cmd \"$cmd\""
;;
esac