From 15a7f0bb6afbb6c11743352612ae77c36ebab860 Mon Sep 17 00:00:00 2001 From: Username Date: Wed, 18 Feb 2026 00:22:52 +0100 Subject: [PATCH] ppf-common: fix compose_cmd to run as podman user --- tools/lib/ppf-common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'" } # ---------------------------------------------------------------------------