summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-02-22 08:57:46 (EST)
committer Francis Rowe <info@gluglug.org.uk>2015-02-22 08:57:46 (EST)
commit19806e7d84e559a167a2e75076ce4b47e9d7dfeb (patch)
tree3f82eed07d81f765233fb86a3b7d2af19056a8c7
parent8fff1e1f0f0f39b50a1c14b5833529b4a86401d9 (diff)
downloadlibreboot.org-19806e7d84e559a167a2e75076ce4b47e9d7dfeb.zip
libreboot.org-19806e7d84e559a167a2e75076ce4b47e9d7dfeb.tar.gz
libreboot.org-19806e7d84e559a167a2e75076ce4b47e9d7dfeb.tar.bz2
Add links to backup rsync mirrors
-rw-r--r--site/download/index.php44
-rw-r--r--site/download/oldtorrent/index.php2
-rw-r--r--site/variables.template.php10
3 files changed, 43 insertions, 13 deletions
diff --git a/site/download/index.php b/site/download/index.php
index 04b0a46..d21da16 100644
--- a/site/download/index.php
+++ b/site/download/index.php
@@ -81,7 +81,7 @@
</p>
<p>
You can verify the downloaded archives as follows:<br/>
- $ <b>for signature in $(ls *.tar.xz.sig); do gpg --verify $signature; done</b>
+ $ <b>for signature in $(ls *.sig); do gpg --verify $signature; done</b>
</p>
</div>
@@ -139,17 +139,45 @@
<h2 id="mirror">Mirroring <?php echo $lbProjectName; ?></h2>
<p>
- Create a directory in your web server directory, eg <?php echo $lbProjectName; ?>/.<br/>
- $ <b><?php echo $lbRsyncCommand; ?></b>
+ Create a directory in your web server document root (e.g. <?php echo $lbProjectName; ?>/),
+ and add one of these to your crontab:
</p>
+<?php
+
+ if (count($lbRsyncServer)>0) {
+?>
+ <h3>Main rsync mirror:</h3>
+ <p>
+ $ <b>rsync -avxP --delete --stats <?php echo $lbRsyncServer[0]; ?> /path/to/docroot/<?php echo $lbProjectName; ?>/</b>
+ </p>
+<?php
+ if(count($lbRsyncServer)>1) {
+?>
+ <h3>Backup rsync mirrors:</h3>
+ <p>
+<?php
+ for ($server=1; $server<count($lbRsyncServer); $server++) {
+?>
+ $ <b>rsync -avxP --delete --stats <?php echo $lbRsyncServer[$server]; ?> /path/to/docroot/<?php echo $lbProjectName; ?>/</b><br/>
+<?php
+ }
+?>
+ </p>
+<?php
+ }
+ } else {
+?>
<p>
- Add this to your crontab.
+ <b>No mirrors available yet.</b>
</p>
+<?php
+ }
+?>
- <p>
- Are you running a mirror? Contact the <?php echo $lbProjectName; ?> project
- (details are on the <a href="../">home page</a>), and the link will be added here.
- </p>
+ <p>
+ Are you running a mirror? Contact the <?php echo $lbProjectName; ?> project
+ (details are on the <a href="../">home page</a>), and the link will be added here.
+ </p>
</div>
diff --git a/site/download/oldtorrent/index.php b/site/download/oldtorrent/index.php
index c4b5726..fb8e369 100644
--- a/site/download/oldtorrent/index.php
+++ b/site/download/oldtorrent/index.php
@@ -79,7 +79,7 @@
</p>
<p>
You can verify the downloaded archives as follows:<br/>
- $ <b>for signature in $(ls *.tar.xz.sig); do gpg --verify $signature; done</b>
+ $ <b>for signature in $(ls *.sig); do gpg --verify $signature; done</b>
</p>
</div>
diff --git a/site/variables.template.php b/site/variables.template.php
index b07f0c5..98bda0b 100644
--- a/site/variables.template.php
+++ b/site/variables.template.php
@@ -52,12 +52,14 @@
"http://www.libreboot.org/release/",
"https://freedombox.org/libreboot/",
"http://www.mirrorservice.org/sites/libreboot.org/release/",
- "ftp://ftp.mirrorservice.org/sites/libreboot.org/release/",
- "rsync://rsync.mirrorservice.org/libreboot.org/release/"
+ "ftp://ftp.mirrorservice.org/sites/libreboot.org/release/"
);
- /* rsync command (for mirroring the project) */
- $lbRsyncCommand = "rsync -avxP --delete --stats libreboot.org::mirrormirror /path/to/webserver/directory/libreboot/";
+ /* rsync servers. Put the main one first */
+ $lbRsyncServer = array (
+ "libreboot.org::mirrormirror",
+ "rsync://rsync.mirrorservice.org/libreboot.org/release/"
+ );
/* Bug tracker URL */
$lbBugTrackerAddress = "http://projects.mtjm.eu/projects/libreboot";