a4b65b9172
- fix rhel-shortnames.conf generation (avoid duplicates and records with invalid URL) - Related: #1883490 Signed-off-by: Jindrich Novy <jnovy@redhat.com>
15 lines
705 B
Bash
Executable File
15 lines
705 B
Bash
Executable File
#!/bin/bash
|
|
spectool -f -g skopeo.spec
|
|
sed -i -e 's/^driver.*=.*/driver = "overlay"/' -e 's/^mountopt.*=.*/mountopt = "nodev,metacopy=on"/' storage.conf
|
|
[ `grep "keyctl" seccomp.json | wc -l` == 0 ] && sed -i '/\"kill\",/i \
|
|
"keyctl",' seccomp.json
|
|
sed -i '/\"socketcall\",/i \
|
|
"socket",' seccomp.json
|
|
sed -i 's/^#.*unqualified-search-registries.*=.*/unqualified-search-registries = ["registry.fedoraproject.org", "registry.access.redhat.com", "registry.centos.org", "docker.io"]/g' registries.conf
|
|
sed -i 's,#.*events_logger.*=.*"journald",events_logger = "file",' containers.conf
|
|
if ! grep \"NET_RAW\" containers.conf
|
|
then
|
|
sed -i '/^default_capabilities/a \
|
|
"NET_RAW",' containers.conf
|
|
fi
|