summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal_vouchers.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-01-24 08:33:31 -0200
committerRenato Botelho <garga@FreeBSD.org>2014-01-24 08:33:31 -0200
commit2ec95f1ffb9231674f3619a641c1005b9ee55853 (patch)
treecdda6c995c239c1493c3810006fc2b2b3984b4c1 /usr/local/www/services_captiveportal_vouchers.php
parent5459701254d951eff2e46250deb76b9504a07fb8 (diff)
downloadpfsense-2ec95f1ffb9231674f3619a641c1005b9ee55853.zip
pfsense-2ec95f1ffb9231674f3619a641c1005b9ee55853.tar.gz
Fix openssl path
Diffstat (limited to 'usr/local/www/services_captiveportal_vouchers.php')
-rw-r--r--usr/local/www/services_captiveportal_vouchers.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/services_captiveportal_vouchers.php b/usr/local/www/services_captiveportal_vouchers.php
index fb5b844..47c3882 100644
--- a/usr/local/www/services_captiveportal_vouchers.php
+++ b/usr/local/www/services_captiveportal_vouchers.php
@@ -25,7 +25,7 @@
POSSIBILITY OF SUCH DAMAGE.
*/
/*
- pfSense_BUILDER_BINARIES: /usr/local/bin/voucher /usr/local/bin/openssl
+ pfSense_BUILDER_BINARIES: /usr/local/bin/voucher /usr/bin/openssl
pfSense_MODULE: captiveportal
*/
@@ -56,8 +56,8 @@ if (empty($cpzone)) {
}
if($_REQUEST['generatekey']) {
- exec("/usr/local/bin/openssl genrsa 64 > /tmp/key64.private");
- exec("/usr/local/bin/openssl rsa -pubout < /tmp/key64.private > /tmp/key64.public");
+ exec("/usr/bin/openssl genrsa 64 > /tmp/key64.private");
+ exec("/usr/bin/openssl rsa -pubout < /tmp/key64.private > /tmp/key64.public");
$privatekey = str_replace("\n", "\\n", file_get_contents("/tmp/key64.private"));
$publickey = str_replace("\n", "\\n", file_get_contents("/tmp/key64.public"));
exec("rm /tmp/key64.private /tmp/key64.public");
OpenPOWER on IntegriCloud