Move public folder creation to the spec file

tags/smeserver-dovecot-extras-0.1.4-1
Daniel Berteaud 8 years ago
parent 39818deb8a
commit be344cb7ae
  1. 8
      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]; 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 ? # SharedMailboxes disabled ?
if (($dovecot->prop('SharedMailbox') || 'disabled') eq 'disabled'){ if (($dovecot->prop('SharedMailbox') || 'disabled') eq 'disabled'){
if (($dovecot->prop('SharedMailboxAcl') || 'yes') ne 'no'){ if (($dovecot->prop('SharedMailboxAcl') || 'yes') ne 'no'){

Loading…
Cancel
Save