home *** CD-ROM | disk | FTP | other *** search
/ ftp.ac-grenoble.fr / 2015.02.ftp.ac-grenoble.fr.tar / ftp.ac-grenoble.fr / pub / slis / updates_rsync / slis_update.cron < prev    next >
Text File  |  2000-05-28  |  2KB  |  52 lines

  1. #!/bin/bash
  2.  
  3. # This script is part of the SLIS Project initiated by the CARMI-Internet
  4. # (AcadΘmie de Grenoble - France 38).
  5. # Ce script fait partie du projet SLIS dΘmarrΘ par le CARMI-Internet
  6. # (AcadΘmie de Grenoble - France 38).
  7. #
  8. # SLIS : Serveur de communications Linux pour l'Internet Scolaire.
  9. # Copyright (C) 1998-2000 Bruno Bzeznik
  10. #
  11. #    This program is free software; you can redistribute it and/or modify
  12. #    it under the terms of the GNU General Public License as published by
  13. #    the Free Software Foundation; either version 2 of the License, or
  14. #    (at your option) any later version.
  15. #
  16. #    This program is distributed in the hope that it will be useful,
  17. #    but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19. #    GNU General Public License for more details.
  20. #    You should have received a copy of the GNU General Public License
  21. #    along with this program (For example ./COPYING);
  22. #    if not, write to the Free Software Foundation, Inc., 675 Mass Ave,
  23. #    Cambridge, MA 02139, USA.
  24. #
  25. # Please send all comments and bug reports by electronic mail to:
  26. #   Bruno Bzeznik <Bruno@ac-grenoble.fr>
  27. # or to <slis@ac-grenoble.fr>
  28. #
  29. # Envoyez vos suggestions et reports de bugs par e-mail α
  30. #   Bruno Bzeznik <Bruno@ac-grenoble.fr>
  31. # ou α <slis@ac-grenoble.fr>
  32. #
  33.  
  34. . /home/hadmin/slis.conf
  35. VERSION=`cat /etc/version_slis_num`
  36.  
  37. if [ -e /var/lock/slis_update ]
  38. then
  39.   logger -t "slis_update.cron[$PPID]" "Lock trouve. Impossible de lancer slis_update.cron"
  40.   echo "Lock trouve. Impossible de lancer slis_update.cron" | mail "$SLISMASTER"
  41.   exit 1
  42. fi
  43. touch /var/lock/slis_update
  44. cd /tmp
  45. rsync rsync://$RSYNC_HOST/$RSYNC_MODULE/slis_update-common .
  46. /bin/bash ./slis_update-common
  47. rsync rsync://$RSYNC_HOST/$RSYNC_MODULE/slis_update-$VERSION .
  48. /bin/bash ./slis_update-$VERSION
  49. rsync rsync://$RSYNC_HOST/$RSYNC_MODULE/slis_update-academie .
  50. /bin/bash ./slis_update-academie
  51. rm -rf /var/lock/slis_update
  52.