Skip to content
Permalink
Browse files

Check for createrepo vs. createrepo_c

Fedora 30 has replaced createrepo with createrepo_c.
  • Loading branch information...
Andreas Gruenbacher
Andreas Gruenbacher committed Jun 25, 2019
1 parent 734d8b9 commit d250ce78da58e5c722aa27e1dad1502a02ad2e2e
Showing with 6 additions and 1 deletion.
  1. +6 −1 upload.sh
@@ -2,7 +2,12 @@

set -e

CREATEREPO=createrepo
if type createrepo_c > /dev/null; then
CREATEREPO=createrepo_c
fi

for repo in rpm srpm; do
createrepo -q --update "$repo"
$CREATEREPO -q --update "$repo"
rsync -rlt --perms --delete -v "$repo/" "trialinfo.at:/var/www/html/$repo"
done

0 comments on commit d250ce7

Please sign in to comment.
You can’t perform that action at this time.