#****************************************************************************** # ESO/DFS # # Who When What # -------- ---------- ------------------------------------------------------- # jknudstr 2009-06-22 Created ############################################################################### # Installation UNIX shell script to adapt an HST node to operate with # multiple NGAS servers. ############################################################################### SRC_URL=http://www.eso.org/~jknudstr/NGAS/RELEASES/V3_1_2 INST_DATE=`date +%Y-%m-%dT%H:%M:%S` echo "=> Adapting an HST node to operate with multiple NGAS servers ..." echo "=> Ensuring server is not running ..." /etc/init.d/ngamsServer stop 2> /dev/null echo "=> Disabling the normal init script ..." mv /etc/init.d/ngamsServer /etc/init.d/ngamsServer.off 2> /dev/null echo "=> Downloading the NGAS configurations and directory structure ..." mv /NGAS/MULTIPROC /NGAS/MULTIPROC.$INST_DATE 2> /dev/null cd /tmp/ rm -f HST_NODES_DATA.tar.gz wget ${SRC_URL}/HST_NODES_DATA.tar.gz gunzip HST_NODES_DATA.tar.gz cd /NGAS/ tar xvf /tmp/HST_NODES_DATA.tar > /dev/null rm -f /tmp/HST_NODES_DATA.tar echo "=> Changing permissions ..." chown ngas.ngas /NGAS/MULTIPROC chown ngas.ngas /NGAS/MULTIPROC/* chown ngas.ngas /NGAS/MULTIPROC/*/bad-files chown ngas.ngas /NGAS/MULTIPROC/*/cache chown ngas.ngas /NGAS/MULTIPROC/cfg chown ngas.ngas /NGAS/MULTIPROC/cfg/* chown ngas.ngas /NGAS/MULTIPROC/*/log chown ngas.ngas /NGAS/MULTIPROC/*/processing chown ngas.ngas /NGAS/MULTIPROC/*/tmp #echo "=> Inserting new HST nodes in the NGAS DB (NGAS Hosts) ..." # IMPL: This is not yet implemented. cd ~/ echo "=> Adaptation of HST node finished" # EOF