Skip to content
Snippets Groups Projects
Verified Commit 67ebc51b authored by Karel Koci's avatar Karel Koci :metal:
Browse files

patches: packages: try to fix install function

parent c70a14d7
No related branches found
No related tags found
1 merge request!123Turris OS 5.0 (HBK)
From 8be99b99bae9c56b55ab4ec940accada7cde3418 Mon Sep 17 00:00:00 2001
From a49cd33a0e09848a712a4371447373d684af247e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= <cynerd@email.cz>
Date: Wed, 20 Feb 2019 22:26:35 +0100
Subject: [PATCH] logrotate: tweak for daily logs rotation
......@@ -15,20 +15,20 @@ Signed-off-by: Karel Kočí <cynerd@email.cz>
create mode 100644 utils/logrotate/files/logrotate.cron
diff --git a/utils/logrotate/Makefile b/utils/logrotate/Makefile
index 2bd8f1498..313ee67d0 100644
index 2477425..bd6115b 100644
--- a/utils/logrotate/Makefile
+++ b/utils/logrotate/Makefile
@@ -57,6 +57,8 @@ define Package/logrotate/install
@@ -56,6 +56,8 @@ define Package/logrotate/install
$(INSTALL_BIN) ${PKG_BUILD_DIR}/logrotate $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc
$(INSTALL_DATA) ./files/logrotate.conf $(1)/etc/
$(INSTALL_DIR) $(1)/etc/logrotate.d
+ $(INSTALL_DIR) $(1)/etc/cron.d
+ $(INSTALL_DATA) ./files/logrotate.cron $(1)/etc/cron.d/logrotate
+ $(INSTALL_DIR) $(1)/etc/logrotate.d
$(INSTALL_DIR) $(1)/etc/logrotate.d
endef
$(eval $(call BuildPackage,logrotate))
diff --git a/utils/logrotate/files/logrotate.conf b/utils/logrotate/files/logrotate.conf
index 9a91db94f..0dd2b99b8 100644
index 9a91db9..0dd2b99 100644
--- a/utils/logrotate/files/logrotate.conf
+++ b/utils/logrotate/files/logrotate.conf
@@ -1,6 +1,6 @@
......@@ -73,7 +73,7 @@ index 9a91db94f..0dd2b99b8 100644
# system-specific logs may be also be configured here.
diff --git a/utils/logrotate/files/logrotate.cron b/utils/logrotate/files/logrotate.cron
new file mode 100644
index 000000000..5cdffc0d3
index 0000000..5cdffc0
--- /dev/null
+++ b/utils/logrotate/files/logrotate.cron
@@ -0,0 +1,2 @@
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment