Changeset 1524


Ignore:
Timestamp:
08/04/09 07:53:19 (16 years ago)
Author:
Mathieu Morlighem
Message:

better way to find config file

Location:
issm/trunk/cron
Files:
1 added
1 edited
2 moved

Legend:

Unmodified
Added
Removed
  • issm/trunk/cron/nightlyrun.sh

    r1521 r1524  
    44
    55#get configs
    6 if [ `hostname -s` == "wilkes" ]; then
    7         source wilkes_config
    8 fi
    9 if [ `hostname -s` == "ice1" ]; then
    10         source ice1_config
     6CONFIG_FILE="configs/`hostname -s`_config"
     7if [ -f $CONFIG_FILE ];
     8then
     9        echo "File $CONFIG_FILE not found. exiting..."
     10        exit
     11else
     12        source $CONFIG_FILE
    1113fi
    1214
Note: See TracChangeset for help on using the changeset viewer.