]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
logrotate: Fix an empty /etc/logrotate.d directory
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 3 Mar 2015 16:57:38 +0000 (17:57 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 3 Mar 2015 16:57:38 +0000 (17:57 +0100)
Fixes #10625

config/rootfiles/common/logrotate
config/rootfiles/core/88/update.sh
lfs/logrotate

index 8410c395f7912c0fee57580808fa384a392b6cfc..7f3e709ead13609beb54da3f87e38941ad527d58 100644 (file)
@@ -1,3 +1,5 @@
+#etc/logrotate.d
+etc/logrotate.d/.empty
 #usr/man/man8/logrotate.8
 usr/sbin/logrotate
 var/lib/logrotate.status
index c93e6b32407486b52ba6e1a9987fbe38cc2ec55e..18dd9af521469b1847e567e0d26d99bc3f4a13b5 100644 (file)
@@ -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...
index 54afba1d3d5b66ccc64c8d647a3dda73ff50c2c7..8f81b2df546cac234a664b0e89c61000a75487dc 100644 (file)
@@ -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)