components/mailman/patches/02-var-share-start.patch
changeset 3832 bed646d1991c
parent 2089 99dd558dda74
equal deleted inserted replaced
3831:33bc4f8fb536 3832:bed646d1991c
     1 This patch is Solaris-specific and thus will not be contributed upstream.
     1 This patch is Solaris-specific and thus will not be contributed upstream.
     2 
     2 
     3 --- mailman-2.1.18-1/misc/mailman.in.~1~	2014-05-06 09:43:56.000000000 -0700
     3 --- mailman-2.1.18-1/misc/mailman.in.~1~	2014-05-06 09:43:56.000000000 -0700
     4 +++ mailman-2.1.18-1/misc/mailman.in	2014-09-12 11:27:53.659779385 -0700
     4 +++ mailman-2.1.18-1/misc/mailman.in	2015-02-17 16:16:08.321600825 -0800
     5 @@ -33,13 +33,53 @@
     5 @@ -33,13 +33,59 @@
     6  # config: @prefix@/Mailman/mm_cfg.py
     6  # config: @prefix@/Mailman/mm_cfg.py
     7  # pidfile: @prefix@/data/master-qrunner.pid
     7  # pidfile: @prefix@/data/master-qrunner.pid
     8  
     8  
     9 +. /lib/svc/share/smf_include.sh
     9 +. /lib/svc/share/smf_include.sh
    10 +
    10 +
    51 +    # it and create it if needed.
    51 +    # it and create it if needed.
    52 +    $MAILMANHOME/bin/list_lists -b | grep -q "^mailman$"
    52 +    $MAILMANHOME/bin/list_lists -b | grep -q "^mailman$"
    53 +    if [[ $? -ne 0 ]]; then
    53 +    if [[ $? -ne 0 ]]; then
    54 +	$MAILMANHOME/bin/newlist -q -e 127.0.0.1 mailman [email protected] mailman
    54 +	$MAILMANHOME/bin/newlist -q -e 127.0.0.1 mailman [email protected] mailman
    55 +    fi
    55 +    fi
       
    56 +    # Check to see if a crontab entry exists; if not, copy the input file
       
    57 +    # into place.
       
    58 +    crontab -l mailman > /dev/null 2>&1
       
    59 +    if [[ $? -ne 0 ]]; then
       
    60 +	VISUAL="/usr/bin/cp $MAILMANHOME/cron/crontab.in" crontab -e mailman
       
    61 +    fi
    56      $PYTHON $MAILMANCTL -s -q start
    62      $PYTHON $MAILMANCTL -s -q start
    57      ;;
    63      ;;
    58  
    64