Fix Signal receiving

This commit is contained in:
2026-02-22 18:05:26 +00:00
parent 0f36b2dde7
commit 4521755344
7 changed files with 227 additions and 12 deletions

View File

@@ -35,7 +35,11 @@ ensure_dirs() {
mkdir -p "$REDIS_DATA_DIR" "$WHATSAPP_DATA_DIR" "$VRUN_DIR" "$ROOT_DIR/signal-cli-config"
# Container runs as uid 1000 (xf); rootless Podman remaps uids so plain
# chown won't work — podman unshare translates to the correct host uid.
podman unshare chown 1000:1000 "$WHATSAPP_DATA_DIR" 2>/dev/null || true
if [[ -n "${QUADLET_SKIP_UNSHARE:-}" ]] || [[ -n "${CONTAINER_HOST:-}" ]] || [[ -n "${PODMAN_HOST:-}" ]] || [[ -n "${DOCKER_HOST:-}" ]]; then
echo "Skipping podman unshare chown (QUADLET_SKIP_UNSHARE or remote host detected)"
else
podman unshare chown 1000:1000 "$WHATSAPP_DATA_DIR" 2>/dev/null || true
fi
}
rm_if_exists() {