Add correct escaping of nested double quotes

This commit is contained in:
Magnus Andersson 2024-02-06 23:41:42 +01:00
parent 0ffa29d6dd
commit 9c6981accf
Signed by: mandersson
GPG key ID: 19CB2C58E1F19B16

View file

@ -109,13 +109,13 @@ class podmanrunner::runner (
unless => "test -f /var/lib/systemd/linger/${user}${userpostfix}", unless => "test -f /var/lib/systemd/linger/${user}${userpostfix}",
} }
# If required build runner image by podman-compose # If required, build runner image by podman-compose
exec { "${user}${userpostfix}-build-runner-image": exec { "${user}${userpostfix}-build-runner-image":
command => "${sdrun} /bin/bash -c 'podman-compose build'", command => "${sdrun} /bin/bash -c 'podman-compose build'",
path => '/usr/bin:/usr/sbin:/bin', path => '/usr/bin:/usr/sbin:/bin',
provider => shell, provider => shell,
logoutput => false, logoutput => false,
unless => "${sdrun} /bin/bash -c 'podman image ls | grep '^localhost/podmanrunner\s\s*3\.[0-9]\.[0-9]''", unless => "${sdrun} /bin/bash -c \"podman image ls | grep '^localhost/podmanrunner\s\s*3\.[0-9]\.[0-9]'\"",
} }
# If not already done, register runner with forgejo instance. # If not already done, register runner with forgejo instance.