Skip to content

Commit d2e8485

Browse files
committed
Fixed: FS#1652 - vmail chown on autoupdate in mirrored/gluster environment
1 parent b4aaf3e commit d2e8485

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/dist/lib/opensuse.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function configure_postfix($options = '')
9595
caselog("$command &> /dev/null", __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command");
9696
}
9797

98-
if($cf['vmail_mailbox_base'] != '' && strlen($cf['vmail_mailbox_base']) >= 10) exec('chown -R '.$cf['vmail_username'].':'.$cf['vmail_groupname'].' '.$cf['vmail_mailbox_base']);
98+
if($cf['vmail_mailbox_base'] != '' && strlen($cf['vmail_mailbox_base']) >= 10 && $this->is_update === false) exec('chown -R '.$cf['vmail_username'].':'.$cf['vmail_groupname'].' '.$cf['vmail_mailbox_base']);
9999

100100
$postconf_commands = array (
101101
'myhostname = '.$conf['hostname'],

0 commit comments

Comments
 (0)