freebsd-ports/mail/archiveopteryx/pkg-install
Ashish SHUKLA 7fe549e435 - Unbreak on 9.x
- Fix jail permissions in pkg-install

PR:		ports/159655
Submitted by:	Mark Felder <feld@feld.me>
2011-08-11 14:02:57 +00:00

28 lines
506 B
Bash

#!/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}
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
exit 0