summaryrefslogtreecommitdiffstats
path: root/net-mgmt/nav
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2006-01-22 03:01:03 +0000
committeredwin <edwin@FreeBSD.org>2006-01-22 03:01:03 +0000
commite31bed690b2fba4714686b691a351a51b98d80e8 (patch)
treefb869b3f76a5b4c5a0d4932490adea12d65abd80 /net-mgmt/nav
parent176655f0a1e9745862db36b0cbfab399d74d1339 (diff)
downloadFreeBSD-ports-e31bed690b2fba4714686b691a351a51b98d80e8.zip
FreeBSD-ports-e31bed690b2fba4714686b691a351a51b98d80e8.tar.gz
Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtry
Approved by: krion@ PR: ports/88711 (related)
Diffstat (limited to 'net-mgmt/nav')
-rw-r--r--net-mgmt/nav/pkg-plist14
1 files changed, 7 insertions, 7 deletions
diff --git a/net-mgmt/nav/pkg-plist b/net-mgmt/nav/pkg-plist
index fbbdcb3..89bad45 100644
--- a/net-mgmt/nav/pkg-plist
+++ b/net-mgmt/nav/pkg-plist
@@ -578,12 +578,12 @@ nav/lib/python/rotater.py
@exec install -d -m 0755 -o navcron -g nav %D/nav/var/rrd %D/nav/var/run %D/nav/var/pg_backup %D/nav/var/log
@unexec rm %D/nav/var/log/thresholdMon.log 2>/dev/null || true
@unexec rm %D/nav/var/run/*.pid 2>/dev/null || true
-@unexec rmdir %D/nav/var/log/* 2>/dev/null || true
-@unexec rmdir %D/nav/var/log 2>/dev/null || true
-@unexec rmdir %D/nav/var/rrd 2>/dev/null || true
-@unexec rmdir %D/nav/var/run 2>/dev/null || true
-@unexec rmdir %D/nav/var/pg_backup 2>/dev/null || true
-@unexec rmdir %D/nav/var 2>/dev/null || true
+@dirrmtry nav/var/log/*
+@dirrmtry nav/var/log
+@dirrmtry nav/var/rrd
+@dirrmtry nav/var/run
+@dirrmtry nav/var/pg_backup
+@dirrmtry nav/var
@unexec find %D/nav/lib/python/nav -type f -name "*.pyc" -delete 2>/dev/null || true
@dirrm nav/apache/tools
@dirrm nav/apache/webapps
@@ -675,5 +675,5 @@ nav/lib/python/rotater.py
@dirrm nav/lib/python/nav
@dirrm nav/lib/python
@dirrm nav/lib
-@unexec rmdir %D/nav 2>/dev/null || true
+@dirrmtry nav
@unexec echo "Some files/directories may be left in %D/nav/var."
OpenPOWER on IntegriCloud