pkgsrc/sysutils/webmin/files/wbm-install.tmpl

17 lines
485 B
Cheetah
Raw Normal View History

# $NetBSD: wbm-install.tmpl,v 1.2 2012/11/02 19:02:51 shattered Exp $
case "${STAGE}" in
POST-INSTALL)
WBMNAME="@WBMNAME@"
WEBMIN_DIR="@WEBMIN_DIR@"
WEBMIN_CONFIG="${PKG_SYSCONFDIR}"
WEBMIN_VAR="@WEBMIN_VARDIR@"
${TEST} ! -f "${WEBMIN_CONFIG}/var-path" ||
WEBMIN_VAR=`${CAT} ${WEBMIN_CONFIG}/var-path`
export WEBMIN_CONFIG WEBMIN_VAR
if ${TEST} -x "${WEBMIN_DIR}/run-postinstalls.pl"; then
( cd ${WEBMIN_DIR} &&
${WEBMIN_DIR}/run-postinstalls.pl ${WBMNAME} )
fi
esac