diff options
Diffstat (limited to 'config/openvpn-client-export')
-rwxr-xr-x | config/openvpn-client-export/openvpn-client-export.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/openvpn-client-export/openvpn-client-export.inc b/config/openvpn-client-export/openvpn-client-export.inc index 16d4de15..5df71645 100755 --- a/config/openvpn-client-export/openvpn-client-export.inc +++ b/config/openvpn-client-export/openvpn-client-export.inc @@ -321,10 +321,10 @@ function viscosity_openvpn_client_config_exporter($srvid, $usrid, $crtid, $usead exec("/usr/local/bin/zip {$tempdir} {$tempdir}.zip"); // Read in file and deliver to client - $outfile = file_get_contents("{$tempdir}.zip"); + $outfile = "{$tempdir}.zip"; // Remove temporary directory - exec("rm -rf {$tempdir} {$tempdir}.zip"); + exec("rm -rf {$tempdir}"); return $outfile; |