1 Commity

Autor SHA1 Zpráva Datum
eb6f88caa4 Make current user the default createrepo-user 2020-04-10 17:32:12 -04:00

Zobrazit soubor

@@ -531,7 +531,11 @@ EOF"
_createrepo_cmd=("createrepo" "-q")
# 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
if "${_prefix[@]}" cp -n "$_outputdir/RPMS/x86_64/MediaCenter-$_mcversion.x86_64.rpm" "$_createrepo_webroot"; then