Show
Ignore:
Timestamp:
03/08/08 15:04:06 (9 months ago)
Author:
tarjei
Message:

Add support for using a configfile when running the script

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.core/support/midcom_services_cron.sh

    r14376 r15429  
    1414# If the Midgard host has a prefix add that without the trailing slash 
    1515SITES="example.com/test https://secure.example.com" 
     16 
     17# You can also place the list of sites in a config file. This saves you 
     18# having to update this script every time you upgrade your server. 
     19 
     20CONFIGFILE="/etc/midgard/sites.list" 
     21if [ -f $CONFIGFILE ]; then 
     22    SITES=$(cat $CONFIGFILE) 
     23fi 
     24 
     25 
    1626# alternatively use elinks, you also specify other options here 
    1727# like "lynx -auth=username:password" for HTTP basic-auth