chore(signing): Make a directory in /usr/etc for Ublue images if not already made pt. 2
This commit is contained in:
parent
12d052668f
commit
902a0b1c61
1 changed files with 3 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue