logrotate: Fix an empty /etc/logrotate.d directory

Fixes #10625
This commit is contained in:
Michael Tremer
2015-03-03 17:57:38 +01:00
parent 29afd40851
commit c460d5c25e
3 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
#etc/logrotate.d
etc/logrotate.d/.empty
#usr/man/man8/logrotate.8
usr/sbin/logrotate
var/lib/logrotate.status

View 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...

View 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)