summaryrefslogtreecommitdiff
path: root/net/isc-dhcp3-server
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-08-25 11:20:30 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-08-25 11:20:30 +0000
commit1ed5abc61dd61c704136488cd3905c8dc2d46be4 (patch)
treea16870e289ddb3a21520a253edbe983c6030f8e8 /net/isc-dhcp3-server
parentisc-dhcp3 port package creates dhcp.leases in wrong directory (diff)
only remove the files if they are zero-length.
Diffstat (limited to 'net/isc-dhcp3-server')
-rw-r--r--net/isc-dhcp3-server/pkg-plist4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/isc-dhcp3-server/pkg-plist b/net/isc-dhcp3-server/pkg-plist
index f60b752e35d9..76de3da76463 100644
--- a/net/isc-dhcp3-server/pkg-plist
+++ b/net/isc-dhcp3-server/pkg-plist
@@ -40,6 +40,6 @@ sbin/dhcrelay
@dirrm include/omapip
@dirrm include/isc-dhcp
@exec [ -f /var/db/dhclient.leases ] || touch /var/db/dhclient.leases
-@unexec [ -s /var/db/dhclient.leases ] || rm -f /var/db/dhclient.leases
+@unexec [ ! -s /var/db/dhclient.leases ] || rm -f /var/db/dhclient.leases
@exec [ -f /var/db/dhcpd.leases ] || touch /var/db/dhcpd.leases
-@unexec [ -s /var/db/dhcpd.leases ] || rm -f /var/db/dhcpd.leases
+@unexec [ ! -s /var/db/dhcpd.leases ] || rm -f /var/db/dhcpd.leases