chore(signing): Make a directory in /usr/etc for Ublue images if not already made pt. 2

This commit is contained in:
fiftydinar 2024-12-08 23:02:42 +01:00 committed by GitHub
parent 12d052668f
commit 902a0b1c61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,7 +32,9 @@ TEMPLATE_POLICY="${MODULE_DIRECTORY}/signing/policy.json"
# Copy policy.json to '/usr/etc/containers/' on Universal Blue based images
# until they solve the issue by copying 'policy.json' to '/etc/containers/' instead
if rpm -q ublue-os-signing &>/dev/null; then
mkdir -p "/usr/etc/containers/"
if ! [ -d "/usr/etc/containers/" ]; then
mkdir -p "/usr/etc/containers/"
fi
POLICY_FILE="/usr/etc/containers/policy.json"
else
POLICY_FILE="${CONTAINER_DIR}/policy.json"