SURFnet / rd-sram-integration

Research Drive / SURF Research Access Management Integration
2 stars 3 forks source link

occ command broken by optional step 6 #237

Closed michielbdejong closed 11 months ago

michielbdejong commented 1 year ago

In commit a6c6aff of the main branch, combined with commit a74ee4d of dev-stock, if you run the optional step 6 of https://github.com/SURFnet/rd-sram-integration#instruction then you will have this error when running the occ command in one of the OC containers:

$ docker exec -it -u www-data oc1.docker ./occ asdf
PHP Notice:  Undefined index: HTTP_HOST in /var/www/html/config/config.php on line 14
[...]
soltanireza65 commented 1 year ago

I was able to reproduce the issue because I've just started the process with bootstrap-rd-sram.sh I've actually ran the step 6 of the instructions.

soltanireza65 commented 1 year ago

I'm going to put a comment in the instructions and in the bootstrap scrict that link to this issue:

soltanireza65 commented 1 year ago

https://github.com/SURFnet/rd-sram-integration/pull/238

michielbdejong commented 1 year ago

one possible solution might be something like3 => (isset(\$_SERVER['HTTP_HOST']) ? \$_SERVER['HTTP_HOST'] : 'localhost')

michielbdejong commented 1 year ago

another option might be something like

sed ... 3 => "`hostname`"

EDIT: ah, that does't work, it returns the container id :(