Project

General

Profile

Revision 86

[issues #129]
Beginning of working to allow customs settings to override predefined settings.

Custom_Settings

View differences:

trunk/email_updates.sh
15 15
#  * Tested on RHELv5.x, CentOSv5.x & CentOSv6.x; basic update and LOCKSS repos
16 16

  
17 17
# References:
18
#
19
#   * http://projects.whyaskwhy.org/projects/email-updates/wiki/Custom_Settings
20
#
18 21
#   * http://quickies.andreaolivato.net/post/133473114/using-sqlite3-in-bash
19 22
#   * The Definitive Guide to SQLite, 2e
20 23
#   * http://www.thegeekstuff.com/2010/06/bash-array-tutorial/
......
27 30
# Settings
28 31
#########################
29 32

  
33
# Custom file that allows overriding all predefined settings
34
# http://projects.whyaskwhy.org/projects/email-updates/wiki/Custom_Settings
35
OVERRIDES_FILE="/etc/whyaskwhy.org/email_updates.conf"
36

  
30 37
# Not a bad idea to run with this enabled for a while after big changes
31 38
# and have cron deliver the output to you for verification
32 39
DEBUG_ON=1
......
108 115
# will only consider items separated by newlines to be the next in the loop
109 116
IFS=$'\n'
110 117

  
118

  
119

  
120
# Allow overriding any of the predefined settings above
121
# http://projects.whyaskwhy.org/projects/email-updates/wiki/Custom_Settings
122
if [ -f ${OVERRIDES_FILE} ]; then
123
    . ${OVERRIDES_FILE}
124
fi
125

  
126

  
111 127
#########################
112 128
# Functions
113 129
#########################

Also available in: Unified diff