diff options
| author | Joe Carstairs <me@joeac.net> | 2026-07-03 15:23:13 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-07-03 15:23:13 +0100 |
| commit | 2aeb58d9eda060f128ab2645790c48582b79786f (patch) | |
| tree | 86558802a415d6ac3bfb41a8097d757808caa8d8 /openrc | |
| parent | affc7521d649759a005337f0b87c91c7d4e30e31 (diff) | |
no quotes around COMPOSECMD
Diffstat (limited to 'openrc')
| -rwxr-xr-x | openrc/init.d/joeac.net.template | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openrc/init.d/joeac.net.template b/openrc/init.d/joeac.net.template index 584cc61..53763fa 100755 --- a/openrc/init.d/joeac.net.template +++ b/openrc/init.d/joeac.net.template @@ -22,7 +22,7 @@ configtest() { eerror "The docker-compose file $${COMPOSEFILE} does not exist!" return 1 fi - if "${COMPOSECMD}" -f "$${COMPOSEFILE}" config >&/dev/null; then + if ${COMPOSECMD} -f "$${COMPOSEFILE}" config >&/dev/null; then einfo "config: ok" else eerror "config: error" @@ -33,13 +33,13 @@ configtest() { start() { configtest || return 1 ebegin "Starting $${MODULENAME}" - "${COMPOSECMD}" -f "$${COMPOSEFILE}" up -d $${DOCKER_COMPOSE_UP_ARGS} $${MODULENAME} + ${COMPOSECMD} -f "$${COMPOSEFILE}" up -d $${DOCKER_COMPOSE_UP_ARGS} $${MODULENAME} eend $$? } stop() { ebegin "Stopping $${MODULENAME}" - "${COMPOSECMD}" -f "$${COMPOSEFILE}" down --timeout=5 $${MODULENAME} + ${COMPOSECMD} -f "$${COMPOSEFILE}" down --timeout=5 $${MODULENAME} eend $$? } @@ -59,7 +59,7 @@ status() { einfo "status: [$$pod] stopped" exit 3 fi - done < <("${COMPOSECMD}" -f "$${COMPOSEFILE}" ps --quiet) + done < <(${COMPOSECMD} -f "$${COMPOSEFILE}" ps --quiet) einfo "status: no container found for $${MODULENAME}" exit 3 } |
