2 changed files with 40 additions and 0 deletions
@ -0,0 +1,36 @@ |
|||||
|
#!/bin/sh |
||||
|
|
||||
|
set -Eeuo pipefail |
||||
|
|
||||
|
mkdir -p REPO/x86_64 REPO/sources |
||||
|
|
||||
|
rsync -a --ignore-existing RPMS/x86_64/ REPO/x86_64 |
||||
|
rsync -a --ignore-existing SRPMS/ REPO/sources |
||||
|
|
||||
|
createrepo REPO/x86_64 |
||||
|
createrepo REPO/sources |
||||
|
|
||||
|
cat > REPO/itix.repo <<"EOF" |
||||
|
[itix] |
||||
|
name=ITIX $releasever - $basearch |
||||
|
baseurl=https://f003.backblazeb2.com/file/itix-rpms/$basearch/ |
||||
|
enabled=1 |
||||
|
countme=1 |
||||
|
metadata_expire=7d |
||||
|
repo_gpgcheck=0 |
||||
|
type=rpm |
||||
|
gpgcheck=0 |
||||
|
skip_if_unavailable=False |
||||
|
|
||||
|
[itix-source] |
||||
|
name=ITIX $releasever - Source |
||||
|
baseurl=https://f003.backblazeb2.com/file/itix-rpms/sources/ |
||||
|
enabled=0 |
||||
|
metadata_expire=7d |
||||
|
repo_gpgcheck=0 |
||||
|
type=rpm |
||||
|
gpgcheck=0 |
||||
|
skip_if_unavailable=False |
||||
|
EOF |
||||
|
|
||||
|
rclone sync -P REPO/ backblaze:itix-rpms |
||||
Loading…
Reference in new issue