Move public folder creation to the spec file

This commit is contained in:
Daniel Berteaud 2017-06-08 15:12:16 +02:00
parent 39818deb8a
commit be344cb7ae
1 changed files with 0 additions and 8 deletions

View File

@ -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'){