diff options
author | Francis 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) |
commit | 19806e7d84e559a167a2e75076ce4b47e9d7dfeb (patch) | |
tree | 3f82eed07d81f765233fb86a3b7d2af19056a8c7 /site/download | |
parent | 8fff1e1f0f0f39b50a1c14b5833529b4a86401d9 (diff) | |
download | libreboot.org-19806e7d84e559a167a2e75076ce4b47e9d7dfeb.zip libreboot.org-19806e7d84e559a167a2e75076ce4b47e9d7dfeb.tar.gz libreboot.org-19806e7d84e559a167a2e75076ce4b47e9d7dfeb.tar.bz2 |
Add links to backup rsync mirrors
Diffstat (limited to 'site/download')
-rw-r--r-- | site/download/index.php | 44 | ||||
-rw-r--r-- | site/download/oldtorrent/index.php | 2 |
2 files changed, 37 insertions, 9 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> |