ports/net/eduvpn/vpn-user-portal/patches/patch-bin_status_php

20 lines
478 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: bin/status.php
--- bin/status.php.orig
+++ bin/status.php
@@ -1,3 +1,4 @@
+#!/usr/local/bin/php
<?php
declare(strict_types=1);
@@ -9,8 +10,8 @@ declare(strict_types=1);
* SPDX-License-Identifier: AGPL-3.0+
*/
2023-10-11 18:19:00 +00:00
-require_once dirname(__DIR__) . '/vendor/autoload.php';
2023-08-16 22:26:55 +00:00
-$baseDir = dirname(__DIR__);
+require_once '/var/www/vpn-user-portal/vendor/autoload.php';
+$baseDir = '/var/www/vpn-user-portal';
use Vpn\Portal\Cfg\Config;
use Vpn\Portal\ConnectionHooks;