From be344cb7ae55fc788e2a2f09c832dcf5e70b675e Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 8 Jun 2017 15:12:16 +0200 Subject: [PATCH] Move public folder creation to the spec file --- root/etc/e-smith/events/actions/dovecot-acl | 8 -------- 1 file changed, 8 deletions(-) diff --git a/root/etc/e-smith/events/actions/dovecot-acl b/root/etc/e-smith/events/actions/dovecot-acl index ca83b13..fea20ca 100644 --- a/root/etc/e-smith/events/actions/dovecot-acl +++ b/root/etc/e-smith/events/actions/dovecot-acl @@ -14,14 +14,6 @@ die "couldn't find dovecot service\n" unless ($dovecot); my $event = $ARGV[0]; -# If PublicMailbox is enabled -if (($dovecot->prop('PublicMailbox') || 'disabled') eq 'enabled'){ - system('/bin/mkdir' ,'-p', "/home/e-smith/files/public") unless (-d '/home/e-smith/files/public'); - system('/bin/chmod', "770", "/home/e-smith/files/public"); - system('/bin/chmod', 'g+s', "/home/e-smith/files/public"); - system('/bin/chown', 'root.sharedmailbox', "/home/e-smith/files/public"); -} - # SharedMailboxes disabled ? if (($dovecot->prop('SharedMailbox') || 'disabled') eq 'disabled'){ if (($dovecot->prop('SharedMailboxAcl') || 'yes') ne 'no'){