From: Peter Korsgaard Date: Sat, 7 Mar 2009 20:17:23 +0000 (-0000) Subject: logrotate: fix logrotate.conf check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fc52ef24b950b72ff55a2bc811a66b71ea814de9;p=buildroot.git logrotate: fix logrotate.conf check Thanks to Hiroshi Shinji for noticing. --- diff --git a/package/logrotate/logrotate.mk b/package/logrotate/logrotate.mk index 220204f8bc..337fd8eb12 100644 --- a/package/logrotate/logrotate.mk +++ b/package/logrotate/logrotate.mk @@ -18,8 +18,8 @@ $(LOGROTATE_DIR)/$(LOGROTATE_BINARY): $(LOGROTATE_DIR)/.source $(TARGET_DIR)/$(LOGROTATE_TARGET_BINARY): $(LOGROTATE_DIR)/$(LOGROTATE_BINARY) $(MAKE) PREFIX=$(TARGET_DIR) -C $(LOGROTATE_DIR) install - if [ ! -f $(TARGET_DIR)/etc/logrotate.conf ]; then - $(INSTALL) -m 0644 package/logrotate/logrotate.conf $(TARGET_DIR)/etc/logrotate.conf; + if [ ! -f $(TARGET_DIR)/etc/logrotate.conf ]; then \ + $(INSTALL) -m 0644 package/logrotate/logrotate.conf $(TARGET_DIR)/etc/logrotate.conf; \ fi $(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/logrotate.d