Move public folder creation to the spec file
This commit is contained in:
parent
39818deb8a
commit
be344cb7ae
|
@ -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'){
|
||||
|
|
Loading…
Reference in New Issue