fix: avoid grep pattern being treated as option
This commit is contained in:
parent
904b78b44a
commit
03b58db18a
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ services:
|
||||||
- /opt/forgejo-runner/docker_certs:/certs
|
- /opt/forgejo-runner/docker_certs:/certs
|
||||||
command: >-
|
command: >-
|
||||||
bash -ec '
|
bash -ec '
|
||||||
if ! grep "--mount type=bind,source=/certs/client,target=/certs/client,readonly" config.yml > /dev/null; then
|
if ! grep -e "--mount type=bind,source=/certs/client,target=/certs/client,readonly" config.yml > /dev/null; then
|
||||||
sed -i "\|options:| a \ \ \ \ --mount type=bind,source=/certs/client,target=/certs/client,readonly" config.yml ;
|
sed -i "\|options:| a \ \ \ \ --mount type=bind,source=/certs/client,target=/certs/client,readonly" config.yml ;
|
||||||
fi ;
|
fi ;
|
||||||
forgejo-runner --config config.yml daemon ;
|
forgejo-runner --config config.yml daemon ;
|
||||||
|
|
Loading…
Add table
Reference in a new issue