containers-common/update.sh
Lokesh Mandvekar dc5d922eab containers-common-4:1-2
- bump version to random number
- no connection of package to github.com/containers/common
- add conf files to dist-git repo
- bring back update.sh

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2021-01-20 15:17:18 -05:00

19 lines
700 B
Bash

#!/usr/bin/bash
spectool -fg containers-common.spec
echo "Changing storage.conf..."
sed -i -e 's/^driver.*=.*/driver = "overlay"/' -e 's/^mountopt.*=.*/mountopt = "nodev,metacopy=on"/' \
storage.conf
echo "Changing seccmop.json..."
[ `grep "keyctl" seccomp.json | wc -l` == 0 ] && sed -i '/\"kill\",/i \
"keyctl",' seccomp.json
sed -i '/\"socketcall\",/i \
"socket",' seccomp.json
echo "Changing registries.conf..."
sed -i 's/^#.*unqualified-search-registries.*=.*/unqualified-search-registries = ["registry.fedoraproject.org", "registry.access.redhat.com", "registry.centos.org", "docker.io"]/g' \
registries.conf