summaryrefslogtreecommitdiff
path: root/www/nginx
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2006-01-22 03:01:03 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2006-01-22 03:01:03 +0000
commit508b8d82f4fdfc6889fe17931ef30f047501dfd6 (patch)
treef7810d4887e5297c7b7788225e906b99c81d709b /www/nginx
parentFix pkg-plist. (diff)
Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtry
Approved by: krion@ PR: ports/88711 (related)
Diffstat (limited to 'www/nginx')
-rw-r--r--www/nginx/pkg-plist2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/nginx/pkg-plist b/www/nginx/pkg-plist
index ace48038cb95..460817a8abeb 100644
--- a/www/nginx/pkg-plist
+++ b/www/nginx/pkg-plist
@@ -6,7 +6,7 @@ etc/nginx/mime.types-dist
@unexec if cmp -s %D/etc/nginx/nginx.conf %D/etc/nginx/nginx.conf-dist; then rm -f %D/etc/nginx/nginx.conf; fi
etc/nginx/nginx.conf-dist
@exec [ -f %B/nginx.conf ] || cp %B/%f %B/nginx.conf
-@unexec rmdir %D/etc/nginx 2>/dev/null || true
+@dirrmtry etc/nginx
%%WWWDATA%%@exec mkdir -p -m 755 www/nginx-dist
@comment @unexec chmod u+w www/nginx-dist
%%WWWDATA%%www/nginx-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING