* distorted:
etc/mirrors.d/50-rfc: Fetch RFCs from IETF; fetch IDs separately.
etc/mirrors.d/50-debian: Actually mirror security updates.
etc/ftpsync-common.conf: Adjust the mirror root directory.
Move the mirror home directory to /var/lib/mirror-admin.
Move the mirror home directory to /var/lib/mirror-admin.
bin/run-mirrors: If we have a keytab file, log in with it.
bin/ftpsync: New version from upstream.
Conflicts:
etc/mirrors.d/50-rfc
## 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.
nil) exec env MIRROR_LOCKED=t locking -f var/mirror.lock "$0" "$@" ;;
esac
+ ## Hack for mad Kerberized NFS.
+ if [ -r etc/krb5.keytab ]; then
+ kinit -k -t etc/krb5.keytab mirror
+ fi
+
## Before we start, rotate the logs. (Doing things this way means that we
## can be sure we don't lose new logs, even if the log rotation goes
## completely mental.