On 30.11.2017 22:24, Antoine Beaupré wrote:
> On 2017-11-30 21:54:57, Sven Hartge wrote:

>> You need to change the code in postinst to
>>
>>    chown smokeping:www-data /etc/smokeping/smokeping_secrets
> 
> can you cook me a patch for that?

No problem, see attachment.

Grüße,
Sven.
From 9ebc28f37e74723e3f4a867bec8c8e3d4c8fa269 Mon Sep 17 00:00:00 2001
From: Sven Hartge <[email protected]>
Date: Thu, 30 Nov 2017 22:26:23 +0100
Subject: [PATCH] Change group of secrets file for slaves to www-data
Cc: [email protected]

Signed-off-by: Sven Hartge <[email protected]>
---
 debian/postinst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/postinst b/debian/postinst
index 16c379b..e15c8ea 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -31,7 +31,7 @@ setup_permissions() {
     chown www-data /var/cache/smokeping/images
     chown smokeping:www-data /var/lib/smokeping/__cgi
     chmod 2775 /var/lib/smokeping/__cgi
-    chown smokeping:smokeping /etc/smokeping/smokeping_secrets
+    chown smokeping:www-data /etc/smokeping/smokeping_secrets
     chmod 640 /etc/smokeping/smokeping_secrets
 }
 
-- 
2.15.0

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to