Change owner of runnerdata to podman user

This commit is contained in:
Magnus Andersson 2024-01-24 16:49:58 +01:00
parent b275509494
commit 47bb899065
Signed by: mandersson
GPG key ID: 19CB2C58E1F19B16

View file

@ -80,7 +80,7 @@ class podmanrunner::runner (
# Make sure the podman user can read the /data dir
exec { "make-${username}${x}-own-runnerdata":
command => "systemd-run --wait --user --machine=${username}${x}@ /bin/bash -c 'echo test'",
command => "systemd-run --wait --user --machine=${username}${x}@ /bin/bash -c 'podman unshare chown 1000:1000 /opt/${username}${x}/runnerdata'",
path => '/usr/bin:/usr/sbin:/bin',
provider => shell,
logoutput => false,