aboutsummaryrefslogtreecommitdiffstats
path: root/config/openvpn-client-export/openvpn-client-export.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-11-13 14:46:40 -0500
committerjim-p <jimp@pfsense.org>2013-11-13 14:48:34 -0500
commitaaec1b25b6ddf069456012b1b42239824f46cbc4 (patch)
tree9f0294b6d66b343b32bb616c39b65764f68d65b4 /config/openvpn-client-export/openvpn-client-export.inc
parent01034294e24ddcffa840665f74b1becba7f7307e (diff)
downloadpfsense-packages-aaec1b25b6ddf069456012b1b42239824f46cbc4.tar.gz
pfsense-packages-aaec1b25b6ddf069456012b1b42239824f46cbc4.tar.bz2
pfsense-packages-aaec1b25b6ddf069456012b1b42239824f46cbc4.zip
OpenVPN Client Export - Update OpenVPN installers to 2.3.2-I003. Fix 64-bit postinstall script, enable 64-bit export. (Note: 64-bit export does not work with OpenVPNManager)
Diffstat (limited to 'config/openvpn-client-export/openvpn-client-export.inc')
-rwxr-xr-xconfig/openvpn-client-export/openvpn-client-export.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/openvpn-client-export/openvpn-client-export.inc b/config/openvpn-client-export/openvpn-client-export.inc
index 4c283410..de27b907 100755
--- a/config/openvpn-client-export/openvpn-client-export.inc
+++ b/config/openvpn-client-export/openvpn-client-export.inc
@@ -471,7 +471,7 @@ function openvpn_client_export_installer($srvid, $usrid, $crtid, $useaddr, $quot
$client_install_exe = "openvpn-install-2.3-x86_64.exe";
break;
default:
- $client_install_exe = "openvpn-install-2.2.exe";
+ $client_install_exe = "openvpn-install-2.3-i686.exe";
}
$ovpndir = "/usr/local/share/openvpn";
@@ -499,6 +499,8 @@ function openvpn_client_export_installer($srvid, $usrid, $crtid, $useaddr, $quot
exec("cp -r {$workdir}/template/* {$tempdir}");
// and put the required installer exe in place
exec("/bin/cp {$tempdir}/{$client_install_exe} {$tempdir}/openvpn-install.exe");
+ if (stristr($openvpn_version, "x64"))
+ rename("{$tempdir}/openvpn-postinstall64.exe", "{$tempdir}/openvpn-postinstall.exe");
// write configuration file
$prefix = openvpn_client_export_prefix($srvid, $usrid, $crtid);
@@ -544,8 +546,6 @@ function openvpn_client_export_installer($srvid, $usrid, $crtid, $useaddr, $quot
if ($openvpnmanager)
$files .= "openvpnmanager ";
- unlink("openvpn-postinstall.exe");
- rename("openvpnmanager/openvpn-postinstall.exe","openvpn-postinstall.exe");
$files .= "openvpn-install.exe ";
$files .= "openvpn-postinstall.exe ";
if ($usetoken)