aboutsummaryrefslogtreecommitdiffstats
path: root/security/nessus-devel
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2006-01-22 11:01:03 +0800
committeredwin <edwin@FreeBSD.org>2006-01-22 11:01:03 +0800
commite31bed690b2fba4714686b691a351a51b98d80e8 (patch)
treefb869b3f76a5b4c5a0d4932490adea12d65abd80 /security/nessus-devel
parent176655f0a1e9745862db36b0cbfab399d74d1339 (diff)
downloadfreebsd-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 'security/nessus-devel')
-rw-r--r--security/nessus-devel/pkg-plist14
1 files changed, 7 insertions, 7 deletions
diff --git a/security/nessus-devel/pkg-plist b/security/nessus-devel/pkg-plist
index 888c58c17474..f1263b9acaa5 100644
--- a/security/nessus-devel/pkg-plist
+++ b/security/nessus-devel/pkg-plist
@@ -27,12 +27,12 @@ sbin/nessusd
@exec mkdir -p %D/var/nessus/logs
@exec mkdir -p %D/var/nessus/users
@unexec if [ ! -s %D/var/nessus/logs/nessusd.messages ]; then rm %D/var/nessus/logs/nessusd.messages 2> /dev/null; fi || true
-@unexec rmdir %D/var/nessus/jobs 2>/dev/null || true
-@unexec rmdir %D/var/nessus/logs 2>/dev/null || true
-@unexec rmdir %D/var/nessus/users 2>/dev/null || true
-@unexec rmdir %D/var/nessus 2>/dev/null || true
-@unexec rmdir %D/etc/nessus 2>/dev/null || true
+@dirrmtry var/nessus/jobs
+@dirrmtry var/nessus/logs
+@dirrmtry var/nessus/users
+@dirrmtry var/nessus
+@dirrmtry etc/nessus
@exec mkdir -p %D/lib/nessus/plugins
-@unexec rmdir %D/lib/nessus/plugins 2>/dev/null || true
-@unexec rmdir %D/lib/nessus 2>/dev/null || true
+@dirrmtry lib/nessus/plugins
+@dirrmtry lib/nessus
@exec if [ ! -f %D/var/CA/serverkey.pem ]; then %D/sbin/nessus-mkcert; fi