Verified Commit 59b47fa2 authored by Alex Iribarren's avatar Alex Iribarren
Browse files

Create metadata even if the repo is empty

parent 7b9cfb87
Pipeline #4156948 canceled with stages
in 24 seconds
......@@ -40,7 +40,11 @@ printf "\nasync=0\n" >> /etc/yum.repos.d/sync.repo
# Create REPOPATH even if the repo is empty
[ ! -d $REPOPATH ] && /bin/mkdir -p ${REPOPATH}
if [ ! -d $REPOPATH ]; then
/bin/mkdir -p ${REPOPATH}
# Repo doesn't exist yet, but we still want createrepo to run even if it's empty
PRECOUNT=-1
fi
# Let's make absolutely sure there's only one copy of the job running
LOCKFILE="$REPOPATH/.reposynclock"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment