[Bug 267367] net-mgmt/icingaweb2: add SHEBANG fix

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 26 Oct 2022 16:28:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267367

            Bug ID: 267367
           Summary: net-mgmt/icingaweb2: add SHEBANG fix
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: joneum@FreeBSD.org
          Reporter: dvl@FreeBSD.org
             Flags: maintainer-feedback?(joneum@FreeBSD.org)
          Assignee: joneum@FreeBSD.org

Created attachment 237657
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=237657&action=edit
fix bin/icingacli

Without this fix, the file in question contains:

$ head -2 /usr/local/www/icingaweb2/bin/icingacli
#!/usr/bin/env php
<?php


This causes problems with an rc.d script I am writing for
net-mgmt/icingaweb2-module-vspheredb which uses that script.

$ sudo service vspheredb start
Starting vspheredb.
env: php: No such file or directory
/usr/local/etc/rc.d/vspheredb: WARNING: failed to start vspheredb

By changing that line to this, the script works as expected:

#!/usr/local/bin/php

I'm happy to do the commit if you prefer.

Thank you

-- 
You are receiving this mail because:
You are the assignee for the bug.