#!/usr/bin/bash

# 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)"
exec /usr/lib/qubes/qfile-unpacker "${id}" "/builder/incoming"
