Ignore:
Timestamp:
Dec 15, 2003, 7:11:16 PM (15 years ago)
Author:
rshaw
Message:

Correction to startup scripts for sysconfdir location.
Adds check for /etc/pam.d/imap file during startup.

Submitted by: Benoit Chesneau <bchesneau@…>
Reviewed by: rshaw@…

Location:
trunk/dports/mail/courier-imap/files
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/mail/courier-imap/files/imapd-ssl.sh

    r3054 r4220  
    44KILL=/bin/kill
    55
     6checkinstall()
     7{
     8        # test if imap service is present in /etc/pam.d
     9        if [ ! -f "__PREFIX/etc/pam.d/imap" ]; then
     10                cp /etc/pam.d/passwd /etc/pam.d/imap
     11        fi     
     12}
     13
    614case "$1" in
    715
    816start)
     17  checkinstall
    918  echo "starting courier-imap - imapd-ssl"
    10   source __PREFIX/etc/courier/imapd
    11   source __PREFIX/etc/courier/imapd-ssl
     19  source __PREFIX/etc/courier-imap/imapd
     20  source __PREFIX/etc/courier-imap/imapd-ssl
    1221  __PREFIX/libexec/imapd-ssl.rc start
    1322  ;;
     
    1524stop)
    1625  echo "stopping courier-imap - imapd-ssl"
    17   source __PREFIX/etc/courier/imapd
    18   source __PREFIX/etc/courier/imapd-ssl
     26  source __PREFIX/etc/courier-imap/imapd
     27  source __PREFIX/etc/courier-imap/imapd-ssl
    1928  __PREFIX/libexec/imapd-ssl.rc stop
    2029  ;;
  • trunk/dports/mail/courier-imap/files/imapd.sh

    r3054 r4220  
    44KILL=/bin/kill
    55
     6checkinstall()
     7{
     8        # test if imap service is present in /etc/pam.d
     9        if [ ! -f "__PREFIX/etc/pam.d/imap" ]; then
     10                cp /etc/pam.d/passwd /etc/pam.d/imap
     11        fi
     12}
     13
     14
    615case "$1" in
    716
    817start)
    9  
     18  checkinstall
    1019  echo "starting courier-imap - imapd"
    11   source __PREFIX/etc/courier/imapd
     20  source __PREFIX/etc/courier-imap/imapd
    1221  __PREFIX/libexec/imapd.rc start
    1322  ;;
     
    1524stop)
    1625  echo "stopping courier-imap - imapd"
    17   source __PREFIX/etc/courier/imapd
     26  source __PREFIX/etc/courier-imap/imapd
    1827  __PREFIX/libexec/imapd.rc stop
    1928  ;;
Note: See TracChangeset for help on using the changeset viewer.