-
Notifications
You must be signed in to change notification settings - Fork 2
/
mirror-remi-repo
executable file
·41 lines (31 loc) · 1.03 KB
/
mirror-remi-repo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh
# Mirrors the full remi repo.
#
# - m.barnaba Sun Apr 26 10:22:15 CEST 2020
#
source $(dirname $(realpath $0))/.config.remi.subr
create_lock
mirror_remi() {
VER="$1"
echo
echo "--------------------------------------------------------------"
echo "`date` - CentOS REMI $VER mirror started"
$RSYNC --verbose --human-readable \
--recursive --links --perms --times \
--itemize-changes --stats --delete \
--include "$VER" \
--include "$VER/remi" \
--include "$VER/remi/x86_64" \
--include "$VER/remi/x86_64/**" \
--exclude "*" \
$RSYNC_HOST $MIRROR_DIR
ret=$?
echo "`date` - CentOS REMI $VER mirror completed with status $ret"
echo "--------------------------------------------------------------"
echo
}
curl -so $MIRROR_DIR/RPM-GPG-KEY-remi https://rpms.remirepo.net/RPM-GPG-KEY-remi
for remi_version in $REMI_VERSIONS; do
mirror_remi $remi_version
done
exit $ret