5c1d26756b
- 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)
13 lines
452 B
Bash
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
|