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 >
Wrap
Text File
|
2000-05-28
|
2KB
|
52 lines
#!/bin/bash
# This script is part of the SLIS Project initiated by the CARMI-Internet
# (AcadΘmie de Grenoble - France 38).
# Ce script fait partie du projet SLIS dΘmarrΘ par le CARMI-Internet
# (AcadΘmie de Grenoble - France 38).
#
# SLIS : Serveur de communications Linux pour l'Internet Scolaire.
# Copyright (C) 1998-2000 Bruno Bzeznik
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program (For example ./COPYING);
# if not, write to the Free Software Foundation, Inc., 675 Mass Ave,
# Cambridge, MA 02139, USA.
#
# Please send all comments and bug reports by electronic mail to:
# Bruno Bzeznik <Bruno@ac-grenoble.fr>
# or to <slis@ac-grenoble.fr>
#
# Envoyez vos suggestions et reports de bugs par e-mail α
# Bruno Bzeznik <Bruno@ac-grenoble.fr>
# ou α <slis@ac-grenoble.fr>
#
. /home/hadmin/slis.conf
VERSION=`cat /etc/version_slis_num`
if [ -e /var/lock/slis_update ]
then
logger -t "slis_update.cron[$PPID]" "Lock trouve. Impossible de lancer slis_update.cron"
echo "Lock trouve. Impossible de lancer slis_update.cron" | mail "$SLISMASTER"
exit 1
fi
touch /var/lock/slis_update
cd /tmp
rsync rsync://$RSYNC_HOST/$RSYNC_MODULE/slis_update-common .
/bin/bash ./slis_update-common
rsync rsync://$RSYNC_HOST/$RSYNC_MODULE/slis_update-$VERSION .
/bin/bash ./slis_update-$VERSION
rsync rsync://$RSYNC_HOST/$RSYNC_MODULE/slis_update-academie .
/bin/bash ./slis_update-academie
rm -rf /var/lock/slis_update