bin/update
changeset 577 b474e2e6f54e
parent 575 b68b8615c512
child 581 6292cb597954
equal deleted inserted replaced
576:638b8cdb5a80 577:b474e2e6f54e
    19 BIN=$(dirname $self)
    19 BIN=$(dirname $self)
    20 
    20 
    21 # code root
    21 # code root
    22 CODE=$(dirname $BIN)
    22 CODE=$(dirname $BIN)
    23 
    23 
    24 
    24 # library code
    25 LIB=$CODE/lib
    25 LIB=$CODE/lib
    26 
    26 
    27 ## Data paths
    27 ## Data paths
    28 # absolute path to data files; can be changed using -d
    28 # absolute path to data files; can be changed using -d
    29 ROOT=$(pwd)
    29 ROOT=$(pwd)
    61 source $LIB/update.utils
    61 source $LIB/update.utils
    62 
    62 
    63 # Dependency-based updates
    63 # Dependency-based updates
    64 source $LIB/update.updates
    64 source $LIB/update.updates
    65 
    65 
    66 # Operations
    66 # Operations; the functions called from run()
    67 source $LIB/update.operations
    67 source $LIB/update.operations
    68 
    68 
    69 
    69 
    70 ## Site settings, used as arguments to scripts
    70 ## Site settings, used as arguments to scripts
    71 # MX record to generate in hosts --forward-zone
    71 # MX record to generate in hosts --forward-zone
    84 DOMAIN_BASE=paivola
    84 DOMAIN_BASE=paivola
    85 
    85 
    86 # List of actual domains used; will be linked to $DOMAIN_BASE
    86 # List of actual domains used; will be linked to $DOMAIN_BASE
    87 DOMAINS=(paivola.fi paivola.net paivola.org paivola.info paivola.mobi xn--pivl-load8j.fi)
    87 DOMAINS=(paivola.fi paivola.net paivola.org paivola.info paivola.mobi xn--pivl-load8j.fi)
    88 
    88 
       
    89 
    89 ## Operate!
    90 ## Operate!
       
    91 # these functions are all defined in lib/update.operations
    90 function run {
    92 function run {
    91     ## Hosts
    93     ## Hosts
    92     # test
    94     # test
    93     log "Testing hosts..."
    95     log "Testing hosts..."
    94         #                   data                            args...
    96         #                   data                            args...