source: trunk/DataCheck/Setup/setup.fact.lp.gate@ 19007

Last change on this file since 19007 was 18694, checked in by Daniela Dorner, 8 years ago
introduced usage of file for mysql pw to avoid warnings
  • Property svn:executable set to *
File size: 970 bytes
Line 
1#!/bin/bash
2#
3# This a resource file for the scripts, in which paths, variables
4# and setups are defined
5#
6# This setup file is for the machine gate in La Palma
7#
8
9# for db backup
10dbnames=( "mysql" "programoptions" "calendar" "systemstatus" "postfix" "horde" "logbook" "factdata" "weather" )
11
12# set only variables which are needed for the scripts running on this machine
13
14# software
15export mars=/users/fact/SW.automatic.processing/Mars.svn.2014.05.26
16
17# logging and setup
18user=`whoami`
19if [ "$user" == "www-data" ]
20then
21 # processes called from the web
22 logpath=/home/factwww/logs.automatic.processing/autologs
23 # file with db information
24 sqlrc=/home/fact/sql.rc
25 sqlpw=/home/fact/.mysql.pw
26else
27 # normal processes called from the commandline or cron
28 logpath=/users/fact/logs.automatic.processing/autologs
29 # file with db information
30 sqlrc=$mars/sql.rc
31 sqlpw=/users/fact/.mysql.pw
32fi
33runlogpath=/users/fact/logs.automatic.processing/autologs
34
Note: See TracBrowser for help on using the repository browser.