From f8eb22f51e587d0cd7cf32b974c9cf371c39adb1 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Mon, 11 Sep 2017 11:11:22 +0200 Subject: [PATCH] Use available variables --- shellpki.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shellpki.sh b/shellpki.sh index 7c180e8..86e671d 100755 --- a/shellpki.sh +++ b/shellpki.sh @@ -112,9 +112,9 @@ fi if [ -e $PREFIX/template.conf ]; then - CA=/etc/openvpn/ssl/ca/cacert.pem - CERT=/var/www/htdocs/vpn/ssl/$cn.crt - KEY=/var/www/htdocs/vpn/ssl/$cn.key + CA=$PREFIX/ca/cacert.pem + CERT=$WWWDIR/$cn.crt + KEY=$WWWDIR/$cn.key REP=/tmp cp $PREFIX/template.conf $REP/$cn.conf