logrotate: fix logrotate.conf check
authorPeter Korsgaard <jacmet@sunsite.dk>
Sat, 7 Mar 2009 20:17:23 +0000 (20:17 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 7 Mar 2009 20:17:23 +0000 (20:17 -0000)
Thanks to Hiroshi Shinji for noticing.

package/logrotate/logrotate.mk

index 220204f8bc24ecb3c1626e78dfcc3d5be234daea..337fd8eb124d5b564f2b4ade7b93c2e41da074f9 100644 (file)
@@ -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