#!/bin/sh
# Install root-owned as /usr/local/libexec/foundationpkgs-apt.
# Never inherit CI-controlled shell/interpreter/GPG configuration into the signer.
cd /var/lib/foundationpkgs-publisher || exit 1
exec /usr/bin/env -i \
	HOME=/var/lib/foundationpkgs-publisher \
	GNUPGHOME=/var/lib/foundationpkgs-publisher/gnupg \
	PATH=/usr/bin:/bin LC_ALL=C \
	FPKGS_APT_ROOT=/var/lib/foundationpkgs-publisher \
	/bin/sh /usr/local/libexec/foundationpkgs-publisher/publish-apt.sh "$@"
