diff options
author | edwin <edwin@FreeBSD.org> | 2006-01-22 11:01:03 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2006-01-22 11:01:03 +0800 |
commit | e31bed690b2fba4714686b691a351a51b98d80e8 (patch) | |
tree | fb869b3f76a5b4c5a0d4932490adea12d65abd80 /net-mgmt/nav | |
parent | 176655f0a1e9745862db36b0cbfab399d74d1339 (diff) | |
download | freebsd-ports-gnome-e31bed690b2fba4714686b691a351a51b98d80e8.tar.gz freebsd-ports-gnome-e31bed690b2fba4714686b691a351a51b98d80e8.tar.zst freebsd-ports-gnome-e31bed690b2fba4714686b691a351a51b98d80e8.zip |
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-plist | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net-mgmt/nav/pkg-plist b/net-mgmt/nav/pkg-plist index fbbdcb37cee0..89bad457af25 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." |