aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfig/openvpn-client-export/openvpn-client-export.inc3
-rwxr-xr-xconfig/openvpn-client-export/openvpn-client-export.xml2
2 files changed, 2 insertions, 3 deletions
diff --git a/config/openvpn-client-export/openvpn-client-export.inc b/config/openvpn-client-export/openvpn-client-export.inc
index 7cffaf3e..144fe176 100755
--- a/config/openvpn-client-export/openvpn-client-export.inc
+++ b/config/openvpn-client-export/openvpn-client-export.inc
@@ -36,7 +36,7 @@ require_once("openvpn.inc");
function openvpn_client_export_install() {
conf_mount_rw();
- $tarpath = "/root/openvpn-client-export.tgz";
+ $tarpath = "/usr/local/pkg/openvpn-client-export.tgz";
$phpfile = "vpn_openvpn_export.php";
$ovpndir = "/usr/local/share/openvpn";
$workdir = "{$ovpndir}/client-export";
@@ -45,7 +45,6 @@ function openvpn_client_export_install() {
mkdir("/usr/local/share/openvpn");
exec("/usr/bin/tar zxf {$tarpath} -C {$ovpndir}");
- unlink($tarpath);
conf_mount_ro();
}
diff --git a/config/openvpn-client-export/openvpn-client-export.xml b/config/openvpn-client-export/openvpn-client-export.xml
index f1de6352..cf163a20 100755
--- a/config/openvpn-client-export/openvpn-client-export.xml
+++ b/config/openvpn-client-export/openvpn-client-export.xml
@@ -20,7 +20,7 @@
<item>http://www.pfsense.com/packages/config/openvpn-client-export/openvpn-client-export.inc</item>
</additional_files_needed>
<additional_files_needed>
- <prefix>/root/</prefix>
+ <prefix>/usr/local/pkg/</prefix>
<chmod>077</chmod>
<item>http://files.pfsense.com/packages/openvpn-client-export/openvpn-client-export.tgz</item>
</additional_files_needed>