Skip to content

Commit baf1c1d

Browse files
committed
Fixes
1 parent d0a9e42 commit baf1c1d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

root/usr/local/bin/ovpn

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ case "$command" in
3737
example)
3838
exec ovpn-example ${@:2}
3939
;;
40+
load)
41+
exec ovpn-load ${@:2}
42+
;;
4043
pki)
4144
exec ovpn-pki ${@:2}
4245
;;

root/usr/local/bin/ovpn-load

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ file="$(basename $1)"
1515
ext="${file#*.}"
1616

1717
if [ "$ext" == "pkg.tar.gz" ]; then
18-
$RUNCMD tar -xvzf $1 -C $OPENVPN_DIR
18+
$RUNCMD tar -xvzf $1 -C /config
1919
elif [ "$ext" == "ovpn" ]; then
2020
$RUNCMD cp $1 $OPENVPN_DIR/$file
2121
elif [ "$ext" == "conf" ]; then

0 commit comments

Comments
 (0)