From 7a366eca7adadec4039e32898809a7d8f37eb32d Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Thu, 10 Sep 2020 00:55:06 +0200 Subject: [PATCH] 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. --- run-koji-container.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-koji-container.sh b/run-koji-container.sh index 97d77ca..6624977 100755 --- a/run-koji-container.sh +++ b/run-koji-container.sh @@ -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"