From 2caa67eeb1992f2205a95f645e49e39f093287df Mon Sep 17 00:00:00 2001 From: Reuben Miller Date: Thu, 11 Jan 2024 14:35:10 +0100 Subject: [PATCH 1/2] feat: add default log and configuration plugin settings --- recipes/thin-edge.io/steps/00-install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes/thin-edge.io/steps/00-install.sh b/recipes/thin-edge.io/steps/00-install.sh index 3f9f34f..fb3ebc1 100755 --- a/recipes/thin-edge.io/steps/00-install.sh +++ b/recipes/thin-edge.io/steps/00-install.sh @@ -52,3 +52,7 @@ fi # Persist tedge configuration and related components (e.g. mosquitto) install -D -m 644 "${RECIPE_DIR}/files/tedge-config.toml" -t /etc/rugpi/state + +# Add default plugin configurations +install -D -m 644 -g tedge -o tedge "${RECIPE_DIR}/files/tedge-configuration-plugin.toml" -t /etc/tedge/plugins/ +install -D -m 644 -g tedge -o tedge "${RECIPE_DIR}/files/tedge-log-plugin.toml" -t /etc/tedge/plugins/ From ea2c638f32f75a68c9b388dbeb7449b0ce16758b Mon Sep 17 00:00:00 2001 From: Reuben Miller Date: Thu, 11 Jan 2024 14:36:12 +0100 Subject: [PATCH 2/2] use 644 file mode for tedge log plugin --- recipes/thin-edge.io/files/tedge-configuration-plugin.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/thin-edge.io/files/tedge-configuration-plugin.toml b/recipes/thin-edge.io/files/tedge-configuration-plugin.toml index 01478d0..cff4fd3 100644 --- a/recipes/thin-edge.io/files/tedge-configuration-plugin.toml +++ b/recipes/thin-edge.io/files/tedge-configuration-plugin.toml @@ -11,4 +11,4 @@ path = "/etc/tedge/plugins/tedge-log-plugin.toml" type = "tedge-log-plugin" user = "tedge" group = "tedge" -mode = 0o0444 +mode = 0o0644