Bug 267367 - net-mgmt/icingaweb2: add SHEBANG fix
Summary: net-mgmt/icingaweb2: add SHEBANG fix
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jochen Neumeister
URL:
Keywords:
: 269558 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-10-26 16:28 UTC by Dan Langille
Modified: 2023-02-14 20:53 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (joneum)


Attachments
fix bin/icingacli (991 bytes, patch)
2022-10-26 16:28 UTC, Dan Langille
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Langille freebsd_committer freebsd_triage 2022-10-26 16:28:15 UTC
Created attachment 237657 [details]
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
Comment 1 Dan Langille freebsd_committer freebsd_triage 2023-02-14 20:41:29 UTC
*** Bug 269558 has been marked as a duplicate of this bug. ***
Comment 2 Dan Langille freebsd_committer freebsd_triage 2023-02-14 20:53:53 UTC
I wound up committing this, crediting 269558 instead of this PR.

Then I saw that joneum@ had taken over this PR.

Sorry.