blob: 8af060bc6be7ebf62a90a539714f7b39607c880d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
[ "${PKG_PREFIX}" ] && PREFIX="${PKG_PREFIX}"
[ "${PREFIX}" ] || PREFIX=/usr/local
case "$2" in
PRE-INSTALL)
if ! pw group show conquest >/dev/null 2>&1
then
echo "===> Creating group conquest"
pw add group conquest
fi
;;
POST-INSTALL)
chown root:conquest ${PREFIX}/etc/conquest
chmod 775 ${PREFIX}/etc/conquest
;;
*)
echo "Incorrect parameter"
exit 1
;;
esac
|