X-Git-Url: https://git.distorted.org.uk/~mdw/mirror-admin/blobdiff_plain/fb775fef3dc038b9cef46288de939f2bda06dbfa..0f8f73ed9f04fb478ccd15449c259f553be44f37:/bin/run-mirrors diff --git a/bin/run-mirrors b/bin/run-mirrors index c69b903..ef7f92c 100755 --- a/bin/run-mirrors +++ b/bin/run-mirrors @@ -9,7 +9,7 @@ case $(id -un) in 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 @@ -19,6 +19,11 @@ case "${MIRROR_LOCKED-nil}" in 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.