Merge lp:~jonathan-abdiel/ubumirror/ipv6 into lp:ubumirror

Proposed by Jonathan Gonzalez V.
Status: Merged
Merged at revision: 85
Proposed branch: lp:~jonathan-abdiel/ubumirror/ipv6
Merge into: lp:ubumirror
Diff against target: 37 lines (+9/-0)
2 files modified
ubuarchive (+6/-0)
ubumirror.conf (+3/-0)
To merge this branch: bzr merge lp:~jonathan-abdiel/ubumirror/ipv6
Reviewer Review Type Date Requested Status
Ubumirror Developers Pending
Review via email: mp+321645@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubuarchive'
2--- ubuarchive 2014-06-08 05:58:41 +0000
3+++ ubuarchive 2017-04-02 12:35:02 +0000
4@@ -30,6 +30,11 @@
5
6 LOGFILE="$LOGDIR/ubuarchive.log"
7
8+PROTO="--ipv4"
9+if [ "$IPV6" -eq 1 ]; then
10+ PROTO="--ipv6"
11+fi
12+
13 # Log all activity to file.
14 exec >> $LOGFILE 2>&1
15
16@@ -68,6 +73,7 @@
17 rsync -av --partial --delete --delete-after \
18 --timeout=$IO_TIMEOUT \
19 --bwlimit=$SPEED \
20+ $PROTO \
21 --exclude "indices/" --exclude "dists/" --exclude "project/trace/${HOSTNAME}" \
22 --exclude "Archive-Update-in-Progress-${HOSTNAME}" \
23 $UBUARC_EXCLUDE \
24
25=== modified file 'ubumirror.conf'
26--- ubumirror.conf 2014-08-15 07:45:45 +0000
27+++ ubumirror.conf 2017-04-02 12:35:02 +0000
28@@ -16,6 +16,9 @@
29 # I/O timeout for all mirror scripts - defaults to 600 seconds.
30 IO_TIMEOUT=600
31
32+# Set to 1 to prefer IPv6 over IPv4
33+IPV6=0
34+
35 # UBUARC_DIR is the destination for the base of the archive directory
36 # The script won't run if this variable isn't set
37 #UBUARC_DIR="/srv/mirror/ubuntu"

Subscribers

People subscribed via source and target branches

to status/vote changes: