freebsd-ports/mail/sgwi/files/pkg-install.in
Rene Ladan 5c1d26756b - Stage support
- Add a second MASTER_SITE
- Suffix patch and resulting files for .htaccess and .htpasswd with ".sample"

PR:		ports/187798
Submitted by:	Lukasz Wasikowski <lukasz@wasikowski.net> (maintainer)
2014-04-06 15:15:52 +00:00

13 lines
452 B
Bash

#!/bin/sh
WWWDIR=%%WWWDIR%%
WWWOWN=%%WWWOWN%%
WWWGRP=%%WWWGRP%%
if [ "$2" != "POST-INSTALL" ]; then
exit 0
else
/usr/sbin/chown -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
/usr/sbin/chown root:${WWWGRP} ${WWWDIR}/.ht* ${WWWDIR}/includes/config.inc.php*
/bin/chmod -R 0640 ${STAGEDIR}${WWWDIR}/*.php ${STAGEDIR}${WWWDIR}/*.txt ${STAGEDIR}${WWWDIR}/*.css ${STAGEDIR}${WWWDIR}/.ht* ${STAGEDIR}${WWWDIR}/includes/*.php ${STAGEDIR}${WWWDIR}/includes/*.sample
fi