Use available variables
This commit is contained in:
parent
9bca20fc32
commit
f8eb22f51e
|
@ -112,9 +112,9 @@ fi
|
||||||
|
|
||||||
if [ -e $PREFIX/template.conf ]; then
|
if [ -e $PREFIX/template.conf ]; then
|
||||||
|
|
||||||
CA=/etc/openvpn/ssl/ca/cacert.pem
|
CA=$PREFIX/ca/cacert.pem
|
||||||
CERT=/var/www/htdocs/vpn/ssl/$cn.crt
|
CERT=$WWWDIR/$cn.crt
|
||||||
KEY=/var/www/htdocs/vpn/ssl/$cn.key
|
KEY=$WWWDIR/$cn.key
|
||||||
REP=/tmp
|
REP=/tmp
|
||||||
|
|
||||||
cp $PREFIX/template.conf $REP/$cn.conf
|
cp $PREFIX/template.conf $REP/$cn.conf
|
||||||
|
|
Loading…
Reference in a new issue