summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2008-04-19 01:40:05 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2008-04-19 01:40:05 +0000
commit5ef26c5ac0845fb8a7a49dbd70d104d316f97d8a (patch)
tree98c45b0ea446782e8155665185b07aee5ed422ca
parentMake use of the @rmtry macro (diff)
Backout two entries which should only delete the files if they are zero length.
-rw-r--r--databases/firebird-server/pkg-plist2
-rw-r--r--databases/firebird2-server/pkg-plist2
-rw-r--r--databases/firebird20-server/pkg-plist2
3 files changed, 3 insertions, 3 deletions
diff --git a/databases/firebird-server/pkg-plist b/databases/firebird-server/pkg-plist
index efb6250c2e01..b4cc040b2d23 100644
--- a/databases/firebird-server/pkg-plist
+++ b/databases/firebird-server/pkg-plist
@@ -26,7 +26,7 @@ sbin/gds_drop
@exec [ -f %D/%%LOCALSTATEDIR%%/security.fdb ] || cp %D/%F %D/%%LOCALSTATEDIR%%/security.fdb
%%LOCALSTATEDIR%%/RELNOTES
%%LOCALSTATEDIR%%/help/help.fdb
-@rmtry %%LOCALSTATEDIR%%/firebird.log
+@unexec [ -s %D/%%LOCALSTATEDIR%%/firebird.log ] || rm -f %D/%%LOCALSTATEDIR%%/firebird.log
@rmtry %%LOCALSTATEDIR%%/isc_event1.`hostname`
@rmtry %%LOCALSTATEDIR%%/isc_init1.`hostname`
@rmtry %%LOCALSTATEDIR%%/isc_lock1.`hostname`
diff --git a/databases/firebird2-server/pkg-plist b/databases/firebird2-server/pkg-plist
index 400054ec22f0..ad1998718589 100644
--- a/databases/firebird2-server/pkg-plist
+++ b/databases/firebird2-server/pkg-plist
@@ -27,7 +27,7 @@ libexec/firebird/udf/ib_udf2.sql
%%LOCALSTATEDIR%%/security2.fdb.sample
@exec [ -f %D/%%LOCALSTATEDIR%%/security2.fdb ] || cp %D/%F %D/%%LOCALSTATEDIR%%/security2.fdb
%%LOCALSTATEDIR%%/help/help.fdb
-@rmtry %%LOCALSTATEDIR%%/firebird.log
+@unexec [ -s %D/%%LOCALSTATEDIR%%/firebird.log ] || rm -f %D/%%LOCALSTATEDIR%%/firebird.log
@rmtry %%LOCALSTATEDIR%%/isc_event1.`hostname`
@rmtry %%LOCALSTATEDIR%%/isc_init1.`hostname`
@rmtry %%LOCALSTATEDIR%%/isc_lock1.`hostname`
diff --git a/databases/firebird20-server/pkg-plist b/databases/firebird20-server/pkg-plist
index 400054ec22f0..ad1998718589 100644
--- a/databases/firebird20-server/pkg-plist
+++ b/databases/firebird20-server/pkg-plist
@@ -27,7 +27,7 @@ libexec/firebird/udf/ib_udf2.sql
%%LOCALSTATEDIR%%/security2.fdb.sample
@exec [ -f %D/%%LOCALSTATEDIR%%/security2.fdb ] || cp %D/%F %D/%%LOCALSTATEDIR%%/security2.fdb
%%LOCALSTATEDIR%%/help/help.fdb
-@rmtry %%LOCALSTATEDIR%%/firebird.log
+@unexec [ -s %D/%%LOCALSTATEDIR%%/firebird.log ] || rm -f %D/%%LOCALSTATEDIR%%/firebird.log
@rmtry %%LOCALSTATEDIR%%/isc_event1.`hostname`
@rmtry %%LOCALSTATEDIR%%/isc_init1.`hostname`
@rmtry %%LOCALSTATEDIR%%/isc_lock1.`hostname`