Browse code

Fix: fix postfix folders rights for telegraf

qvigand authored on 11/06/2018 13:51:37
Showing 2 changed files
... ...
@@ -19,8 +19,10 @@ import net.bluemind.server.hook.DefaultServerHook;
19 19
 public class PostfixTagHandler extends DefaultServerHook {
20 20
 	private static final Logger logger = LoggerFactory.getLogger(PostfixTagHandler.class);
21 21
 	private static final String UNIX_ACL[] = { "/usr/sbin/usermod -a -G postdrop telegraf",
22
-			"/bin/chgrp -R postdrop /var/spool/postfix/{active,hold,incoming,deferred}",
23
-			"/bin/chmod -R g+rXs /var/spool/postfix/{active,hold,incoming,deferred}",
22
+			"/bin/chgrp -R postdrop /var/spool/postfix/active", "/bin/chgrp -R postdrop /var/spool/postfix/hold",
23
+			"/bin/chgrp -R postdrop /var/spool/postfix/incoming", "/bin/chgrp -R postdrop /var/spool/postfix/deferred",
24
+			"/bin/chmod -R g+rXs /var/spool/postfix/active", "/bin/chmod -R g+rXs /var/spool/postfix/hold",
25
+			"/bin/chmod -R g+rXs /var/spool/postfix/incoming", "/bin/chmod -R g+rXs /var/spool/postfix/deferred",
24 26
 			"/bin/chmod g+r /var/spool/postfix/maildrop" };
25 27
 
26 28
 	@Override
... ...
@@ -67,7 +67,7 @@ public class UpgradeExistingTags implements IVersionedUpdater {
67 67
 
68 68
 	@Override
69 69
 	public int buildNumber() {
70
-		return 29750;
70
+		return 29777;
71 71
 	}
72 72
 
73 73
 	@Override