run-koji-container: don't fail if share dir exists

We need to drop in the RPMs into the share-dir before the hub
container is started, so don't fail if the directory already
exists.
This commit is contained in:
Christian Kellner 2020-09-10 00:55:06 +02:00 committed by Tom Gundersen
parent 2682911556
commit 7a366eca7a

View file

@ -48,7 +48,7 @@ koji_start() {
trap koji_clean_up_bad_start EXIT
# create a share directory which is used to share files between the host and containers
mkdir "${SHARE_DIR}"
mkdir -p "${SHARE_DIR}"
# generate self-signed certificates in the share directory
openssl req -new -nodes -x509 -days 365 -keyout "${SHARE_DIR}/ca-key.pem" -out "${SHARE_DIR}/ca-crt.pem" -subj "/CN=osbuild.org"