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_4.0_rsync
/
lcslis_dom0_update-common-pre
< prev
next >
Wrap
Text File
|
2007-06-20
|
2KB
|
69 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-2003 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>
#
# Contact: Olivier.LeCam@crdp.ac-versailles.fr
#
# Comments:
# Downloaded via rsync and executed by SLIS during
# the 'slis_update' process
# Started before version updates
#
# Updates:
# olecam: Jan 9, 2006: script ported to SLIS v4
#
# Variables
#
LOGTAG="lcslis_dom0_update-common-pre[$$]"
LOCKFILE="/var/lock/lcslis_dom0_update-common-pre"
SCRIPT_STATUS_MSG="Script 'lcslis_dom0_update-common-pre'"
UPDDIR="/etc/slis/updates"
#
# Locking
#
if [ -e $LOCKFILE ]
then
logger -t "$LOGTAG" "Lock found. Update already started."
exit
fi
touch $LOCKFILE
sleep 1
[ -d $UPDDIR ] || /bin/mkdir -p $UPDDIR
logger -t "$LOGTAG" "$SCRIPT_STATUS_MSG: started."
##############################
##############################
logger -t "$LOGTAG" "$SCRIPT_STATUS_MSG: successed."
rm -f $LOCKFILE