Merge branch 'distorted' into vampire
authorMark Wooding <mdw@distorted.org.uk>
Wed, 17 Aug 2011 08:16:51 +0000 (09:16 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 17 Aug 2011 08:16:51 +0000 (09:16 +0100)
* distorted:
  etc/ftpsync-debian-security.conf: Don't ask for unstable or experimental.
  etc/ftpsync-common.conf: Include Debian sources.

bin/run-mirrors
etc/ftpsync-common.conf
etc/logrotate.conf
etc/mirrors.d/50-debian
etc/mirrors.d/50-mirror
etc/mirrors.d/50-rfc

index c69b903..1dffeec 100755 (executable)
@@ -5,11 +5,11 @@ set -e
 ## Make sure we're running as the right user.
 case $(id -un) in
   mirror) ;;
-  *) exec userv -fstdin=/dev/null mirror run ;;
+  *) exec sudo -umirror "$0" "$@" ;;
 esac
 
 ## Set up a plausible environment.
-HOME=/mnt/ftp/mirror-admin; export HOME; cd
+HOME=/var/lib/mirror-admin; export HOME; cd
 PATH=$HOME/bin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/bin:/usr/local/sbin
 export PATH
 umask 002
index af89c7e..de669b9 100644 (file)
@@ -15,7 +15,7 @@
 ## CAREFUL, this directory will contain the mirror. Everything else that
 ## might have happened to be in there WILL BE GONE after the mirror sync!
 : ${LABEL="debian"}
-: ${TO="/mnt/mirror/$LABEL/"}
+: ${TO="/mnt/ftp/pub/mirrors/$LABEL/"}
 
 ## The upstream name of the rsync share.
 : ${RSYNC_PATH="$LABEL"}
index 44f00d4..a67d4a2 100644 (file)
@@ -7,5 +7,5 @@ rotate 31
 minsize 4194304
 daily
 
-/mnt/ftp/mirror-admin/log/*.log {
+/var/lib/mirror-admin/log/*.log {
 }
index 23a0db5..7f65d0d 100755 (executable)
@@ -2,6 +2,6 @@
 ###
 ### Mirror Debian archives.
 
-for archive in debian; do
+for archive in debian-security debian; do
   bin/ftpsync sync:all sync:archive:$archive
 done
index 989fff2..da23848 100755 (executable)
@@ -3,5 +3,5 @@
 ### Lee MacLoughlin's mirror scripts.
 
 here=$(pwd)
-cd ../pub/mirrors
+cd /mnt/ftp/pub/mirrors
 mirror -d "$@" "$here"/etc/mirror.packages
index 3323f2a..7cab6b8 100755 (executable)
@@ -7,4 +7,4 @@ standard_rsync "$@" \
   --exclude /ien/scanned/ \
   --exclude /tar/ \
   rsync.mirrorservice.org::ftp.isi.edu/in-notes/ \
-  ../pub/mirrors/rfc/
+  /mnt/ftp/pub/mirrors/rfc/