Skip to content

Commit 8f898a3

Browse files
committed
Improved opensuse support.
1 parent 20c7c38 commit 8f898a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

install/dist/lib/opensuse.lib.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ function configure_postfix($options = '')
9191
} else {
9292
$command = 'useradd -g '.$cf['vmail_groupname'].' -u '.$cf['vmail_userid'].' '.$cf['vmail_username'].' -d '.$cf['vmail_mailbox_base'].' -m';
9393
caselog("$command &> /dev/null", __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command");
94-
}
94+
}
95+
96+
if($cf['vmail_mailbox_base'] != '' && strlen($cf['vmail_mailbox_base']) >= 10) exec('chown -R '.$cf['vmail_username'].':'.$cf['vmail_groupname'].' '.$cf['vmail_mailbox_base']);
9597

9698
$postconf_commands = array (
9799
'myhostname = '.$conf['hostname'],

0 commit comments

Comments
 (0)