iankelling.org
/
git
/
vpn-setup
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a61d44
)
fix arg processing
author
Ian Kelling
<ian@iankelling.org>
Sat, 27 Aug 2016 19:39:46 +0000
(12:39 -0700)
committer
Ian Kelling
<ian@iankelling.org>
Sat, 27 Aug 2016 19:39:46 +0000
(12:39 -0700)
vpn-mk-client-cert
patch
|
blob
|
history
diff --git
a/vpn-mk-client-cert
b/vpn-mk-client-cert
index a3ea21f87f6128ab1a2fb4fe9bf5a0dbf0ffb5ed..9dc75f4c46395ce2f89dcb41d7fc9c31fbb69d83 100755
(executable)
--- a/
vpn-mk-client-cert
+++ b/
vpn-mk-client-cert
@@
-24,7
+24,7
@@
trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
[[ $EUID == 0 ]] || exec sudo -E "$BASH_SOURCE" "$@"
usage() {
- cat <<
'EOF'
+ cat <<
EOF
usage: ${0##*/} VPN_SERVER_HOST [CLIENT_HOST]
Generate a client cert and config and install it on locally or on
@@
-35,10
+35,10
@@
EOF
}
case $1 in
- -h|--help
|*
) usage 0 ;;
+ -h|--help) usage 0 ;;
esac
-(($# <=
2
)) || usage 1
+(($# <=
1
)) || usage 1
host=$1
shell="bash -c"