#!/bin/bash # # as our first order of business, determine which LAP instance is running # if [ -z "${LAPINSTANCE}" ]; then host=${HOSTNAME}; if [ -z "${host}" ]; then host=$(hostnmae); fi if [ "${host}" = "ps.hpc.uio.no" ]; then LAPINSTANCE=development; elif [ "${host}" = "at.hpc.uio.no" ]; then LAPINSTANCE=production; elif [ "${host}" = "lap-test.hpc.uio.no" ]; then LAPINSTANCE=test; else LAPINSTANCE=local; fi export LAPINSTANCE; fi sudo -u laportal \ svn up \ /projects/lap/${LAPINSTANCE}/trunk/{library,tree} \ /home/laportal/{operation,tools,www}; # # for the March 2015 version, at least, changes to the tool configuration do # not become visible unless this file, which is auto-generated at start-up, is # removed. # sudo -u laportal \ /bin/rm -f /home/laportal/galaxy/integrated_tool_panel.xml > /dev/null 2>&1 /etc/init.d/galaxyd restart;