2004-10-21 17:54:45 +00:00
|
|
|
@comment $FreeBSD$
|
2007-09-19 08:48:24 +00:00
|
|
|
%%ETCDIR%%/fastcgi_params
|
|
|
|
%%ETCDIR%%/koi-utf
|
|
|
|
%%ETCDIR%%/koi-win
|
|
|
|
%%ETCDIR%%/win-utf
|
|
|
|
@unexec if cmp -s %D/%%ETCDIR%%/mime.types-dist %D/%%ETCDIR%%/mime.types; then rm -f %D/%%ETCDIR%%/mime.types; fi
|
|
|
|
%%ETCDIR%%/mime.types-dist
|
|
|
|
@exec if [ ! -f %D/%%ETCDIR%%/mime.types ] ; then cp -p %D/%F %B/mime.types; fi
|
|
|
|
@unexec if cmp -s %D/%%ETCDIR%%/nginx.conf-dist %D/%%ETCDIR%%/nginx.conf; then rm -f %D/%%ETCDIR%%/nginx.conf; fi
|
|
|
|
%%ETCDIR%%/nginx.conf-dist
|
|
|
|
@exec if [ ! -f %D/%%ETCDIR%%/nginx.conf ] ; then cp -p %D/%F %B/nginx.conf; fi
|
|
|
|
@dirrmtry %%ETCDIR%%
|
2004-11-11 14:52:40 +00:00
|
|
|
%%WWWDATA%%@exec mkdir -p -m 755 www/nginx-dist
|
2007-08-16 08:43:06 +00:00
|
|
|
%%WWWDATA%%@exec if [ ! -d %D/www/nginx/ ] ; then ln -fs %D/www/nginx-dist %D/www/nginx; fi
|
2004-11-11 14:52:40 +00:00
|
|
|
%%WWWDATA%%www/nginx-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING
|
|
|
|
%%WWWDATA%%www/nginx-dist/index.html
|
2006-06-30 12:45:38 +00:00
|
|
|
%%WWWDATA%%www/nginx-dist/50x.html
|
2004-11-11 14:52:40 +00:00
|
|
|
%%WWWDATA%%@exec chmod a-w www/nginx-dist
|
|
|
|
%%WWWDATA%%@unexec if [ -L %D/www/nginx ]; then rm -f %D/www/nginx; fi
|
2007-08-16 08:43:06 +00:00
|
|
|
%%WWWDATA%%@dirrmtry www/nginx-dist
|
2004-12-07 09:07:43 +00:00
|
|
|
sbin/nginx
|
2006-05-10 09:55:02 +00:00
|
|
|
@exec [ -d %%NGINX_TMPDIR%% ] || mkdir -p %%NGINX_TMPDIR%%
|
|
|
|
@exec chown %%WWWOWN%%:%%WWWGRP%% %%NGINX_TMPDIR%%
|
2008-10-15 07:36:39 +00:00
|
|
|
@unexec if [ -z ${UPGRADE_PORT} ] ; then rm -fr %%NGINX_TMPDIR%%; fi
|