2001-11-16 00:21:29 +01:00
|
|
|
#!/bin/sh
|
2004-12-15 14:18:02 +01:00
|
|
|
# $Id: INSTALL,v 1.4 2004/12/15 13:18:02 taca Exp $
|
2001-11-16 00:21:29 +01:00
|
|
|
|
2001-12-19 05:11:07 +01:00
|
|
|
YAT_CONF_DIR="@PKG_SYSCONFDIR@"
|
2001-11-16 00:21:29 +01:00
|
|
|
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
|