Changeset 86380 for trunk/dports/mail


Ignore:
Timestamp:
Oct 25, 2011, 12:33:03 AM (8 years ago)
Author:
jmr@…
Message:

postfix: move chown command incorrectly added in pre-install in r41192 (#31754)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/mail/postfix/Portfile

    r86273 r86380  
    116116                 ${destroot}${prefix}/etc/postfix/${f}.sample
    117117        }
    118 }
    119 
    120 pre-install {
     118
    121119        if {[geteuid] == 0} {
    122120            system "chown -R ${pf_mail_owner} \
    123121                '${destroot}${prefix}/var/spool/postfix/public' \
    124122                '${destroot}${prefix}/var/lib/postfix'"
    125         } else {
     123        }
     124}
     125
     126pre-install {
     127        if {[geteuid] != 0} {
    126128            ui_msg "Insufficient privileges to chown files; you'll need to do this manually:"
    127129            ui_msg "sudo chown -R ${pf_mail_owner} ${prefix}/var/spool/postfix/public ${prefix}/var/lib/postfix"
Note: See TracChangeset for help on using the changeset viewer.