Originally created by @kjpetrie on GitHub (Feb 20, 2023).
Attempting to renew with LetsEncrypt in FreeBSD 13.1-RELEASE-p7 produces the error:
/usr/local/etc/dehydrated/hook.sh: line 217: $1: unbound variable
Line 217 appears to be the following function:
startup_hook() {
# This hook is called before the cron command to do some initial tasks
# (e.g. starting a webserver).
:
}
Originally created by @kjpetrie on GitHub (Feb 20, 2023).
Attempting to renew with LetsEncrypt in FreeBSD 13.1-RELEASE-p7 produces the error:
/usr/local/etc/dehydrated/hook.sh: line 217: $1: unbound variable
Line 217 appears to be the following function:
```
startup_hook() {
# This hook is called before the cron command to do some initial tasks
# (e.g. starting a webserver).
:
}
```
Can you give any more details? From what I see the hook scripts aren't even configured by default in the freebsd dehydrated port. And the hook script should never be called without an argument so $1 should always be defined.
@lukas2511 commented on GitHub (Feb 20, 2023):
Can you give any more details? From what I see the hook scripts aren't even configured by default in the freebsd dehydrated port. And the hook script should never be called without an argument so `$1` should always be defined.
Thank you! It seems a new FreeBSD package built by my poudriere on 17th January inserted a hook.sh script which was called automatically since I have /usr/local/etc/dehydrated configured as CONFG_D. Without that the config files including domains.txt can't be found.
@kjpetrie commented on GitHub (Feb 20, 2023):
Thank you! It seems a new FreeBSD package built by my poudriere on 17th January inserted a hook.sh script which was called automatically since I have /usr/local/etc/dehydrated configured as CONFG_D. Without that the config files including domains.txt can't be found.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @kjpetrie on GitHub (Feb 20, 2023).
Attempting to renew with LetsEncrypt in FreeBSD 13.1-RELEASE-p7 produces the error:
/usr/local/etc/dehydrated/hook.sh: line 217: $1: unbound variable
Line 217 appears to be the following function:
@lukas2511 commented on GitHub (Feb 20, 2023):
Can you give any more details? From what I see the hook scripts aren't even configured by default in the freebsd dehydrated port. And the hook script should never be called without an argument so
$1should always be defined.@kjpetrie commented on GitHub (Feb 20, 2023):
Thank you! It seems a new FreeBSD package built by my poudriere on 17th January inserted a hook.sh script which was called automatically since I have /usr/local/etc/dehydrated configured as CONFG_D. Without that the config files including domains.txt can't be found.