Whitespace in values under /etc/letsencrypt/cli.ini


#1

What is the correct way to introduce values with spaces in /etc/letsencrypt/cli.ini? What I need is

renew-hook = /usr/bin/php /some/script.php

Is it ok that way or mby some quoting is required?


#3

I think this is already right.

@rg305, the first part should be the PHP interpreter and the second part the script to be interpreted. However, @dandelionred, you can also get around needing to run the interpreter explicitly by making the first line of the script itself be

#!/usr/bin/php

See also


#4

There is a reason why I don’t use shebangs with php as well why I don’t put the whole command into a shell one-liner. Thanks for your reply! I was pretty sure quoting was not required, just needed someone to approve it.


#5

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.