#!/bin/ksh ############################################################################### # $Id: update_kickconfig,v 1.2 2005/10/11 11:53:11 petri Exp $ # Project: ESRF/Linux # Description: Update KickStart configuration support file on all Rembo # servers with KickStatr support. # See ../distcnf/kickconfig.rbc # # Author(s): Petri Makijarvi # European Synchrotron Radiation Facility, # Grenoble, France # # Original: August 2005 # # License: GNU General Public License, version 2 ############################################################################### # configfile='kickconfig.rbc' # distbin='/dist/mydist/distbin' distcnf='/dist/mydist/distcnf' # configfilepath="${distcnf}/${configfile}" uploadscript="${distbin}/upload_on_all_remboservers" uploaddir='kickstart' # if [ ! -e ${uploadscript} ];then echo "Sorry, cannot find script ${uploadscript}, or it is not executable." exit 1 fi # if [ $# -gt 0 -a "$1" == "-?" ]; then echo -n "usage: " echo "$0" echo "Updates ${configfilepath} in Rembo directory ${rembodir} on" echo `${uploadscript} -?` exit 1 fi # if [ ! -r ${configfilepath} ];then echo "Sorry, can not find file ${configfilepath} to upload" exit 1 fi # if [ ! -e ${uploadscript} ];then echo "Sorry, cannot find script ${uploadscript}, or it is not executable." exit 1 fi # ${uploadscript} ${configfilepath} ${uploaddir} ${configfile} # exit 0 # end of update_kickconfig