aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-03-10 18:31:26 -0500
committerScott Ullrich <sullrich@pfsense.org>2010-03-10 18:31:26 -0500
commit78c993c07eab5ec35cfcfe099aa43a86356a7e48 (patch)
treeb3077d2a761dfba4cb4c90a1f85403496029339c /config
parentb3040f34c6e321184cfea719284f029f0d5cc550 (diff)
downloadpfsense-packages-78c993c07eab5ec35cfcfe099aa43a86356a7e48.tar.gz
pfsense-packages-78c993c07eab5ec35cfcfe099aa43a86356a7e48.tar.bz2
pfsense-packages-78c993c07eab5ec35cfcfe099aa43a86356a7e48.zip
Add conf_mount_rw() and conf_mount_ro() items for NanoBSD
Diffstat (limited to 'config')
-rwxr-xr-xconfig/openvpn-client-export/openvpn-client-export.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/openvpn-client-export/openvpn-client-export.inc b/config/openvpn-client-export/openvpn-client-export.inc
index f113fb06..aabb32eb 100755
--- a/config/openvpn-client-export/openvpn-client-export.inc
+++ b/config/openvpn-client-export/openvpn-client-export.inc
@@ -35,6 +35,7 @@ require_once("globals.inc");
require_once("openvpn.inc");
function openvpn_client_export_install() {
+ conf_mount_rw();
$tarpath = "/tmp/openvpn-client-export.tgz";
$phpfile = "vpn_openvpn_export.php";
$ovpndir = "/usr/local/share/openvpn";
@@ -45,15 +46,18 @@ function openvpn_client_export_install() {
exec("/usr/bin/tar zxf {$tarpath} -C {$ovpndir}");
unlink($tarpath);
+ conf_mount_ro();
}
function openvpn_client_export_deinstall() {
+ conf_mount_rw();
$phpfile = "vpn_openvpn_export.php";
$ovpndir = "/usr/local/share/openvpn";
$workdir = "{$ovpndir}/client-export";
unlink_if_exists("/usr/local/www/{$phpfile}");
exec("/bin/rm -r {$workdir}");
+ conf_mount_ro();
}
function openvpn_client_export_prefix($srvid) {