Skip to content

Commit

Permalink
fix(add-client): adapt paths for production
Browse files Browse the repository at this point in the history
  • Loading branch information
redgeoff committed Jul 22, 2017
1 parent c4ecd8e commit 2689abd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions add-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if [ "$name" = "" ]; then
fi

# Generate a client certificate and key pair
./generate-client-certificate.sh $name
$sd/generate-client-certificate.sh $name

# Make config
./make-config.sh $name
$sd/make-config.sh $name
6 changes: 5 additions & 1 deletion generate-client-certificate.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

# Change to script directory
sd=`dirname $0`
cd $sd

name=$1

if [ "$name" = "" ]; then
Expand All @@ -9,4 +13,4 @@ fi

cd ~/openvpn-ca
source vars
/vagrant/build-key.sh $name
$sd/build-key.sh $name

0 comments on commit 2689abd

Please sign in to comment.