alpine-mirror: upgrade to 1.1.0
allow for setting extra options to rsync
This commit is contained in:
parent
b6fdc1f024
commit
411b9c64bb
2 changed files with 4 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
||||
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
||||
pkgname=alpine-mirror
|
||||
pkgver=1.0.0
|
||||
pkgver=1.1.0
|
||||
pkgrel=0
|
||||
pkgdesc="your own personal mirror of alpine"
|
||||
url="https://git.ddd.rip/ptrcnull/aports"
|
||||
|
@ -21,6 +21,6 @@ package() {
|
|||
}
|
||||
|
||||
sha512sums="
|
||||
60b46a766d0835dd8968b83b497eef520e555166cf6198189dce5231f321d22856339d0db5771ce63005e1e9e59d6ac8af5f6efa9ee2c027321a65e7e753b409 alpine-mirror
|
||||
1aad6e9ff755d3116fb36db4d0db29d6fe60c7d48e7a966513189a7801c6830f13152619319fca17b451903e2f94ee1da1ff85299e52433823205448ca7fc2ab alpine-mirror
|
||||
b7103fcd0411d64249f06c21a73fc87c290cbe60bb921515d319f6415b10e9c9d400d5a8b9b2816fc0f59f13f3df487fb88ec14fbaea2ff031c606b47540657b alpine-mirror.conf
|
||||
"
|
||||
|
|
|
@ -11,6 +11,7 @@ src=rsync://rsync.alpinelinux.org/alpine/
|
|||
dest=/var/lib/mirror/
|
||||
versions="edge"
|
||||
arches="x86_64"
|
||||
extra_options=""
|
||||
|
||||
. /etc/alpine-mirror.conf
|
||||
|
||||
|
@ -25,6 +26,7 @@ mirror() {
|
|||
--delete-after \
|
||||
--delay-updates \
|
||||
--timeout=600 \
|
||||
$extra_options \
|
||||
"$src$1" "$dest$1"
|
||||
exitcode=$?
|
||||
[ $exitcode == 0 ] || echo "rsync $1 failed with exit code: $exitcode"
|
||||
|
|
Loading…
Reference in a new issue