#! /bin/sh RSVREPOBASE="http://osg-svn.rtinfo.indiana.edu/rsv/releases/latest/" if [ ${1}0 != "0" ] then RSVREPOBASE="http://osg-svn.rtinfo.indiana.edu/rsv/releases/${1}/" echo "Set RVREPOBASE to ${RSVREPOBASE}" fi RSV_LOCATION=${VDT_LOCATION}/osg-rsv RSV_VDT_APP_LOCATION=${VDT_LOCATION}/vdt-app-data/osg-rsv ## Always update probes, logrotate stuff, and setup scripts - to latest version; ## Switch to repo if necessary and/or if specified svn switch --force ${RSVREPOBASE}/osg-rsv/bin ${RSV_LOCATION}/bin svn switch --force ${RSVREPOBASE}/osg-rsv/setup ${RSV_LOCATION}/setup svn switch --force ${RSVREPOBASE}/osg-rsv/logs/logrotate ${RSV_LOCATION}/logs/logrotate # Export config files if they don't exist yet; always get sample_metrics.conf rm -f ${RSV_VDT_APP_LOCATION}/config/sample_metrics.conf svn export --force ${RSVREPOBASE}/osg-rsv/config/sample_metrics.conf ${RSV_VDT_APP_LOCATION}/config/sample_metrics.conf if [ -f ${RSV_VDT_APP_LOCATION}/config/rsv-gratia.info ] then echo "Existing file ${RSV_VDT_APP_LOCATION}/config/rsv-gratia.info found - skipping" else svn export --force ${RSVREPOBASE}/osg-rsv/config/rsv-gratia.info ${RSV_VDT_APP_LOCATION}/config/rsv-gratia.info fi if [ -f ${RSV_VDT_APP_LOCATION}/config/rsv-nagios.conf ] then echo "Existing file ${RSV_VDT_APP_LOCATION}/config/rsv-nagios.conf found - skipping" else svn export --force ${RSVREPOBASE}/osg-rsv/config/rsv-nagios.conf ${RSV_VDT_APP_LOCATION}/config/rsv-nagios.conf fi exit 0