Skip to content
Snippets Groups Projects

sync-epel: only run on 1 host

Merged Ben Morrice requested to merge syncepelfix into master
1 file
+ 6
0
Compare changes
  • Side-by-side
  • Inline
+ 6
0
@@ -8,6 +8,12 @@
# c) the tier1 mirror is not in a broken state
# The script will retry additional tier1 mirrors if it's broken
[[ $EUID -eq 0 ]] && echo "Do not run it as root. Exit!" && exit 1
MASTER=lxsoftadm01.cern.ch
[ -f /etc/lxsoft.conf ] && . /etc/lxsoft.conf
[ x`/bin/hostname` != x$MASTER ] && echo "This host (`/bin/hostname`) is not MASTER ($MASTER). Exit." && exit 0
EMAIL=1
EMAIL_LOG=`mktemp`
EMAIL_TO="lxsoft-admins@cern.ch"
Loading