#!/bin/bash # # This a resource file for the scripts, in which paths, variables # and setups are defined # # This setup file is for the machine gate in La Palma # # for db backup dbnames=( "mysql" "programoptions" "calendar" "systemstatus" "postfix" "horde" "logbook" "factdata" "weather" ) # set only variables which are needed for the scripts running on this machine # software export mars=/users/fact/SW.automatic.processing/Mars.svn.2014.05.26 # logging and setup user=`whoami` if [ "$user" == "www-data" ] then # processes called from the web logpath=/home/factwww/logs.automatic.processing/autologs # file with db information sqlrc=/home/fact/sql.rc sqlpw=/home/fact/.mysql.pw else # normal processes called from the commandline or cron logpath=/users/fact/logs.automatic.processing/autologs # file with db information sqlrc=$mars/sql.rc sqlpw=/users/fact/.mysql.pw fi runlogpath=/users/fact/logs.automatic.processing/autologs