blob: 06fc7523da29806078e49da7387d1b316f730f7d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/sh
PKGNAME=$1
TARGET=$2
MKDIR=/bin/mkdir
CHOWN=/usr/sbin/chown
CHMOD=/bin/chmod
AOXGROUP=aox
AOXUSER=aox
if [ $# -ne 2 ]; then
echo "Usage: $0 [PKGNAME] [PRE-INSTALL | POST-INSTALL]"
exit 1
fi
if [ "$TARGET" = POST-INSTALL ]; then
for i in /var/db/aox/jail /var/db/aox/messages; do
${MKDIR} -m 700 -p ${i}
${CHOWN} ${AOXUSER}:${AOXGROUP} ${i}
done
${CHMOD} 700 /var/db/aox
${MKDIR} /var/run/aox
${CHOWN} ${AOXUSER}:${AOXGROUP} /var/db/aox /var/run/aox
fi
exit 0
|