qusal/salt/qubes-builder/files/server/rpc/qubesbuilder.FileCopyIn
Ben Grande 0eecbcffc4 fix: unconfined qfile-unpacker
Upstream-commit: 0648b2329f0d142a2e24ecf376b28603fb04abb4
2024-01-03 14:35:06 +01:00

19 lines
411 B
Bash
Executable File

#!/usr/bin/sh
# SPDX-FileCopyrightText: 2022 - 2023 The Qubes OS Project <https://www.qubes-os.org>
#
# SPDX-License-Identifier: GPL-2.0-only
set -e
sudo bash -c "mkdir -p /builder/incoming && chown -R user:user /builder"
id=$(id -u user)
if test -x /usr/lib/qubes/qfile-unpacker; then
# shellcheck disable=SC2123
PATH="${PATH+"$PATH:"}/usr/lib/qubes"
fi
exec qfile-unpacker "$id" "/builder/incoming"