aports/community/icingaweb2/fix-env-php8.patch
Francesco Colista 77026cdd57 community/icingaweb2: hardcode php8 for icinga* utils
in corner-cases scenario where both php7 and 8 are installed,
some icinga utils (like icingacli) does not work ootb because
/usr/bin/php is a symlink to a different version than php8.

With this patch, php8 is hardcoded on shebang path
2021-08-13 14:51:23 +00:00

41 lines
1.1 KiB
Diff

diff --git a/bin/icingacli b/bin/icingacli
index 056d521..0284aed 100755
--- a/bin/icingacli
+++ b/bin/icingacli
@@ -1,4 +1,4 @@
-#!/usr/bin/env php
+#!/usr/bin/env php8
<?php
/* Icinga Web 2 | (c) 2013 Icinga Development Team | GPLv2+ */
diff --git a/library/vendor/lessphp/bin/lessc b/library/vendor/lessphp/bin/lessc
index fa1fb95..d7303a5 100755
--- a/library/vendor/lessphp/bin/lessc
+++ b/library/vendor/lessphp/bin/lessc
@@ -1,4 +1,4 @@
-#!/usr/bin/env php
+#!/usr/bin/env php8
<?php
require_once dirname(__FILE__) . '/../lib/Less/Autoloader.php';
diff --git a/packages/files/bin/icingacli b/packages/files/bin/icingacli
index 4b51e33..cc02d1f 100755
--- a/packages/files/bin/icingacli
+++ b/packages/files/bin/icingacli
@@ -1,4 +1,4 @@
-#!/usr/bin/php
+#!/usr/bin/php8
<?php
/*! Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
diff --git a/test/check-syntax.php b/test/check-syntax.php
index b8f4afd..ae8f9c0 100755
--- a/test/check-syntax.php
+++ b/test/check-syntax.php
@@ -1,4 +1,4 @@
-#!/usr/bin/env php
+#!/usr/bin/env php8
<?php
function findPhpFiles($dir, &$files = [])