/[gnats]/gnats/debian/scripts/addmail
ViewVC logotype

Diff of /gnats/debian/scripts/addmail

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by pdm, Sun Dec 23 20:20:15 2001 UTC revision 1.3 by pdm, Sun Mar 3 20:12:29 2002 UTC
# Line 14  if [ "$1" = configure ]; then Line 14  if [ "$1" = configure ]; then
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

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26