summaryrefslogtreecommitdiff
path: root/package/logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'package/logrotate')
-rw-r--r--package/logrotate/logrotate.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/logrotate/logrotate.mk b/package/logrotate/logrotate.mk
index 318f27f8d..220204f8b 100644
--- a/package/logrotate/logrotate.mk
+++ b/package/logrotate/logrotate.mk
@@ -18,7 +18,9 @@ $(LOGROTATE_DIR)/$(LOGROTATE_BINARY): $(LOGROTATE_DIR)/.source
$(TARGET_DIR)/$(LOGROTATE_TARGET_BINARY): $(LOGROTATE_DIR)/$(LOGROTATE_BINARY)
$(MAKE) PREFIX=$(TARGET_DIR) -C $(LOGROTATE_DIR) install
- $(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
logrotate: popt $(TARGET_DIR)/$(LOGROTATE_TARGET_BINARY)