#****************************************************************************** # Eso/DFS # # Who When What # -------- ---------- ------------------------------------------------------- # jknudstr 2011-07-29 Created ############################################################################### # Installation UNIX shell script to update the plug-ins on an NGAS node. ############################################################################### ############################################################################### # Base URL from where to obtain the distribution. ############################################################################### #SRC_URL=http://aclxint.hq.eso.org/addons/ngas/ngas_software/CURRENT/ SRC_URL=http://www.eso.org/~jknudstr/NGAS/RELEASES/CURRENT ############################################################################### # Various parameters to update for the specific context. ############################################################################### #INST_EMAIL=sosteam@eso.org #INST_EMAIL=jknudstr@eso.org #INST_EMAIL=mkleinge@eso.org INST_EMAIL=${USER}@${HOSTNAME} PATCH=PATCH_1_V3_1_2 PATCH_PLUGIN=Install_patch_1_v3_1_2 ############################################################################### ############################################################################### # Download and install the patch plug-in. ############################################################################### cd /tmp rm -rf ${PATCH}* wget ${SRC_URL}/${PATCH}.tar.gz tar zxvf ${PATCH}.tar.gz \cp -f /tmp/${PATCH}/ngasInstall/src/ngasInstallSys.py /opsw/packages/ngasInstall/src \cp -f /tmp/${PATCH}/ngasInstall/plug-ins/${PATCH_PLUGIN}.py /opsw/packages/ngasInstall/plug-ins/ ############################################################################### ############################################################################### # Installation command. ############################################################################### python /opsw/packages/ngasInstall/src/ngasInstallSys.py \ --subject="NGAS PATCH INSTALLATION REPORT" \ --installation-root=/opsw/packages/ \ --src-url=${SRC_URL}/ \ --skip-ngas-inst \ --notif-email=${INST_EMAIL} \ --${PATCH_PLUGIN} ############################################################################### ############################################################################### # Leave a trace on the machine that this patch update was installed. ############################################################################### cd /opsw/packages mkdir -p patches cd /opsw/packages/patches touch history echo "Installed patch: ${PATCH}. Date: `date`" >> history cd /tmp ############################################################################### # EOF