|
Last change
on this file since 19774 was 19476, checked in by Daniela Dorner, 7 years ago |
|
updated mysql-setup
|
-
Property svn:executable
set to
*
|
|
File size:
972 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
|
|---|
| 10 | dbnames=( "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
|
|---|
| 15 | export mars=/users/fact/SW.automatic.processing/Mars.svn.2014.05.26
|
|---|
| 16 |
|
|---|
| 17 | # logging and setup
|
|---|
| 18 | user=`whoami`
|
|---|
| 19 | if [ "$user" == "www-data" ]
|
|---|
| 20 | then
|
|---|
| 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 | sqlrc=/home/fact/.mysql.pw
|
|---|
| 26 | else
|
|---|
| 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 | sqlrc=/users/fact/.mysql.pw
|
|---|
| 32 | fi
|
|---|
| 33 | runlogpath=/users/fact/logs.automatic.processing/autologs
|
|---|
| 34 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.