14 |
# |
# |
15 |
|
|
16 |
EXIM=$(dpkg -l exim | protect grep -c '^.i') |
EXIM=$(dpkg -l exim | protect grep -c '^.i') |
17 |
EXIMCONF=/etc/exim.conf |
for F in /etc/exim/exim.conf /etc/exim.conf; do |
18 |
|
if [ -f $F ]; then |
19 |
|
EXIMCONF=$F |
20 |
|
break |
21 |
|
fi |
22 |
|
done |
23 |
|
|
24 |
if [ $EXIM -gt 0 ] && [ -f $EXIMCONF ]; then |
if [ $EXIM -gt 0 ] && [ -n "$EXIMCONF" ]; then |
25 |
if [ $(grep -c '^[ \t]*user[ \t]*=' $EXIMCONF) -eq 0 ]; then |
if [ $(grep -c '^[ \t]*user[ \t]*=' $EXIMCONF) -eq 0 ]; then |
26 |
LINES=$(grep '^[ \t]*#[ \t]*user[ \t]*=' $EXIMCONF) |
LINES=$(grep '^[ \t]*#[ \t]*user[ \t]*=' $EXIMCONF) |
27 |
if [ -n "$LINES" ]; then |
if [ -n "$LINES" ]; then |