aboutsummaryrefslogtreecommitdiffstats
path: root/www/squidstats
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-09-03 01:41:25 +0800
committerbapt <bapt@FreeBSD.org>2014-09-03 01:41:25 +0800
commit6be62f3a9de929682986532e51779f94dd3bf13c (patch)
treeb04b31c4770eed8f68a0d872bf42dc70b70c9c23 /www/squidstats
parent937e2b438fa284d73e880284efee592a3c2f1f29 (diff)
downloadfreebsd-ports-gnome-6be62f3a9de929682986532e51779f94dd3bf13c.tar.gz
freebsd-ports-gnome-6be62f3a9de929682986532e51779f94dd3bf13c.tar.zst
freebsd-ports-gnome-6be62f3a9de929682986532e51779f94dd3bf13c.zip
Package empty directories
Diffstat (limited to 'www/squidstats')
-rw-r--r--www/squidstats/pkg-plist10
1 files changed, 3 insertions, 7 deletions
diff --git a/www/squidstats/pkg-plist b/www/squidstats/pkg-plist
index c727ba9b54b9..b4aaa23105ca 100644
--- a/www/squidstats/pkg-plist
+++ b/www/squidstats/pkg-plist
@@ -24,10 +24,6 @@ www/cgi-bin/graph-summary.cgi
@dirrm %%DATADIR%%/templates
@dirrm %%DATADIR%%
@dirrmtry www/cgi-bin
-@cwd /
-@comment set directory owner
-@exec chown -R %%WWWOWN%% "/var/db/squidstats/graphs"
-@exec chown -R %%SQUID_USER%% "/var/db/squidstats/rrd"
-@unexec rmdir "/var/db/squidstats/graphs" >/dev/null 2>&1 || :
-@unexec rmdir "/var/db/squidstats/rrd" >/dev/null 2>&1 || :
-@unexec rmdir "/var/db/squidstats" >/dev/null 2>&1 || :
+@dirrmtry(%%WWWOWN%%,,) /var/db/squidstats/graphs
+@dirrmtry(%%SQUID_USER%%,,) /var/db/squidstats/rrd
+@dirrmtry /var/db/squidstats