diff --git a/tools/lib/ppf-common.sh b/tools/lib/ppf-common.sh index d3cbb47..28d2577 100644 --- a/tools/lib/ppf-common.sh +++ b/tools/lib/ppf-common.sh @@ -139,7 +139,7 @@ compose_cmd() { local host="$1"; shift local cmd="$*" ansible_cmd "$host" -m raw -a \ - "uid=\$(id -u podman) && cd /home/podman/ppf && sudo -u podman XDG_RUNTIME_DIR=/run/user/\$uid podman-compose $cmd" + "uid=\$(id -u podman) && sudo -u podman bash -c 'export XDG_RUNTIME_DIR=/run/user/'\$uid' && cd /home/podman/ppf && podman-compose $cmd'" } # ---------------------------------------------------------------------------