Merge branch 'master' into distorted
authorMark Wooding <mdw@distorted.org.uk>
Thu, 21 Jul 2011 15:55:27 +0000 (16:55 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 21 Jul 2011 15:55:27 +0000 (16:55 +0100)
* master:
  etc/ftpsync-debian.conf: Fetch from the German mirror.
  bin/run-mirrors: Use id(1) to find current user name.
  etc/logrotate.conf: Somehow went missing.

bin/run-mirrors
etc/ftpsync-debian.conf
etc/logrotate.conf [new file with mode: 0644]

index ec43009..c69b903 100755 (executable)
@@ -3,7 +3,7 @@
 set -e
 
 ## Make sure we're running as the right user.
-case "$USER" in
+case $(id -un) in
   mirror) ;;
   *) exec userv -fstdin=/dev/null mirror run ;;
 esac
index 391e6b7..15d5c83 100644 (file)
@@ -15,7 +15,7 @@ TO="/mnt/ftp/pub/mirrors/debian/"
 RSYNC_PATH="debian"
 
 ## The host we mirror from
-RSYNC_HOST=ftp.uk.debian.org
+RSYNC_HOST=ftp.de.debian.org
 
 ## In case we need a user to access the rsync share at our upstream host
 #RSYNC_USER=
diff --git a/etc/logrotate.conf b/etc/logrotate.conf
new file mode 100644 (file)
index 0000000..44f00d4
--- /dev/null
@@ -0,0 +1,11 @@
+### -*-conf-*-
+###
+### Log rotation configuration for mirrors.
+
+compress
+rotate 31
+minsize 4194304
+daily
+
+/mnt/ftp/mirror-admin/log/*.log {
+}