Open DavidAUM23 opened 3 years ago
This seems to be a problem with the escaped quotes. The parameter string was passed with the escaped quotes, resulting in a parsing error within samba.sh. Now the \"
in the SAMBA_PARAMETER string are replaced by "
. Maybe this solves the problem.
Using the -e SAMBA_PARAMETER
now yields restarting container logs:
Start Web Service Discovery host daemon (WSDD)
Parameter: -w MYWKGRP -i enp0s25
Start /usr/bin/samba.sh from original docker image
Parameter: -s "public;/share1"
/usr/bin/samba.sh: line 117: $2: unbound variable
...
Using the arguments passed after the image name now yields restarting container logs:
Start Web Service Discovery host daemon (WSDD)
Parameter: -w MYWKGRP -i enp0s25
Start /usr/bin/samba.sh from original docker image
/entrypoint.sh: line 19: syntax error: bad substitution
...
Hello,
If I run:
The container seems to be happy and working exactly as expected.
The logs look great:
even though
Parameter: -s public;/share1
is logged as such, without the " quotes.If instead, I use
-e SAMBA_PARAMETER
like this:The container begins a restart loop. The logs report: