1 Commits

Author SHA1 Message Date
eb6f88caa4 Make current user the default createrepo-user 2020-04-10 17:32:12 -04:00

View File

@@ -531,7 +531,11 @@ EOF"
_createrepo_cmd=("createrepo" "-q") _createrepo_cmd=("createrepo" "-q")
# If the webroot does not exist, create it # If the webroot does not exist, create it
[[ ! -d "$_createrepo_webroot" ]] && "${_prefix[@]}" mkdir -p "$_createrepo_webroot" if [[ ! -d "$_createrepo_webroot" ]]; then
if ! "${_prefix[@]}" mkdir -p "$_createrepo_webroot"; then
echo "Make sure that the createrepo-webroot is writeable by createrepo-user!"
fi
fi
# Copy built rpms to webroot # Copy built rpms to webroot
if "${_prefix[@]}" cp -n "$_outputdir/RPMS/x86_64/MediaCenter-$_mcversion.x86_64.rpm" "$_createrepo_webroot"; then if "${_prefix[@]}" cp -n "$_outputdir/RPMS/x86_64/MediaCenter-$_mcversion.x86_64.rpm" "$_createrepo_webroot"; then