aboutsummaryrefslogtreecommitdiffstats
path: root/mail/archiveopteryx/pkg-install
blob: 0e6b9d4974a38e544d25b3d51d141d5ca55ec443 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

MKDIR=/bin/mkdir
CHOWN=/usr/sbin/chown
CHMOD=/bin/chmod

AOXGROUP=aox
AOXUSER=aox

if [ "$2" = POST-INSTALL ]; then
    for i in /var/db/aox/jail /var/db/aox/messages; do
        ${MKDIR} -m 700 -p ${i}
    done
    ${CHOWN} root:wheel /var/db/aox/jail
    ${CHMOD} 700 /var/db/aox
    ${MKDIR} /var/run/aox
    ${CHOWN} ${AOXUSER}:${AOXGROUP} /var/db/aox /var/run/aox /var/db/aox/messages
fi