diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-08-25 11:20:30 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-08-25 11:20:30 +0000 |
commit | 1ed5abc61dd61c704136488cd3905c8dc2d46be4 (patch) | |
tree | a16870e289ddb3a21520a253edbe983c6030f8e8 /net/isc-dhcp3-server | |
parent | isc-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-plist | 4 |
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 |