So my initial problem was solved before I made this post (don't use
Here is the only relevant bit of the rc.d-script:
Changing line 10 solves the problem, remove the
But why? – What was changed and where can I read on this?
My first thought brought me to rc.subr(8) which only states "The name of this script. This is not optional." – but also listed
-
in $name
) but I'm here to ask your help in aiding me to find the changes and showing me, where to look/read.- I have multiple flavours one of them called
basic-dns
- On first run
/etc/rc.d/ezjail_flavour_basic-dns
is called and executed - My setup works fine under FreeBSD 12.2
- The rc.d-script fails under FreeBSD 13 –
export: -dns_env: bad variable name
Here is the only relevant bit of the rc.d-script:
Bash:
#!/bin/sh
#
# BEFORE: DAEMON
# PROVIDE: ezjail.basic-dns.config
#
# ezjail_flavour_basic-dns
. /etc/rc.subr
name=ezjail_flavour_basic-dns
start_cmd=flavour_setup
flavour_setup() {
…
}
run_rc_command "$1"
Changing line 10 solves the problem, remove the
-
from the name and everything works fine (e.g. name=ezjail_flavour_basic_dns
), quotes did not help.But why? – What was changed and where can I read on this?
My first thought brought me to rc.subr(8) which only states "The name of this script. This is not optional." – but also listed
${name}_env
which brought me to thinking: Maybe the -
is interpreted as shell substitution like ${name-dns}
– but then the error wouldn't include the -
…