From c460d5c25e231ab6322dcbb13bc04e6e56d5d7f6 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 3 Mar 2015 17:57:38 +0100 Subject: [PATCH] logrotate: Fix an empty /etc/logrotate.d directory Fixes #10625 --- config/rootfiles/common/logrotate | 2 ++ config/rootfiles/core/88/update.sh | 3 +++ lfs/logrotate | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/config/rootfiles/common/logrotate b/config/rootfiles/common/logrotate index 8410c395f7..7f3e709ead 100644 --- a/config/rootfiles/common/logrotate +++ b/config/rootfiles/common/logrotate @@ -1,3 +1,5 @@ +#etc/logrotate.d +etc/logrotate.d/.empty #usr/man/man8/logrotate.8 usr/sbin/logrotate var/lib/logrotate.status diff --git a/config/rootfiles/core/88/update.sh b/config/rootfiles/core/88/update.sh index c93e6b3240..18dd9af521 100644 --- a/config/rootfiles/core/88/update.sh +++ b/config/rootfiles/core/88/update.sh @@ -48,6 +48,9 @@ rm -f \ /opt/pakfire/db/installed/meta-sqlite \ /opt/pakfire/db/rootfiles/sqlite +# Fix #10625 +mkdir -p /etc/logrotate.d + sync # This update need a reboot... diff --git a/lfs/logrotate b/lfs/logrotate index 54afba1d3d..8f81b2df54 100644 --- a/lfs/logrotate +++ b/lfs/logrotate @@ -72,6 +72,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) cd $(DIR_APP) && make $(MAKETUNING) cd $(DIR_APP) && make install - touch /var/lib/logrotate.status + mkdir -pv /etc/logrotate.d + touch /etc/logrotate.d/.empty /var/lib/logrotate.status @rm -rf $(DIR_APP) @$(POSTBUILD) -- 2.39.2