blob: c5ae1d5b6728361b32c27d5a469c48b6c1cb87c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
# $Id: INSTALL,v 1.4 2004/12/15 13:18:02 taca Exp $
YAT_CONF_DIR="@PKG_SYSCONFDIR@"
DEFAULT_ADMIN="@DEFAULT_ADMIN@"
MIN="@YATSVR_MINGID@"
MAX="@YATSVR_MAXGID@"
case ${STAGE} in
POST-INSTALL)
if [ ! -f ${YAT_CONF_DIR}/.admin ]; then
echo ${DEFAULT_ADMIN} > ${YAT_CONF_DIR}/.admin
${CHMOD} 0600 ${YAT_CONF_DIR}/.admin
fi
# hack for restrict groups
${AWK} -F: '$1 !~ /^no/ { if ($3 < '$MIN' || $3 > '$MAX') print $1}' \
/etc/group > ${YAT_CONF_DIR}/.hidden-group
${CHMOD} 0600 ${YAT_CONF_DIR}/.hidden-group
;;
esac
|