updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / qmail / run-functions
blobe744aeb4033515a58f587cd99843e00097d43bbc
2 # run-functions  This file contains functions common to the qmail run scripts
5 exec 2>&1
7 PATH="/sbin:/usr/sbin:/bin:/usr/bin:$PATH"
9 # Read the contents of a control file, substituting the given default
10 # string if the file is empty.
11 readdefault() {
12         var=$1; shift
13         file=$1; shift
14         if [ -s /var/qmail/control/$file ]; then
15                 export $var="`cat /var/qmail/control/$file`"
16         else
17                 export $var="$*"
18         fi