Skip to content

Commit 2d374af

Browse files
author
Till Brehm
committed
Fixed file paths and group in #5681
1 parent e98bb16 commit 2d374af

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

install/lib/installer_base.lib.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,7 @@ public function process_postfix_config($configfile) {
737737
global $conf;
738738

739739
$config_dir = $conf['postfix']['config_dir'].'/';
740+
$postfix_group = $conf['postfix']['group'];
740741
$full_file_name = $config_dir.$configfile;
741742
//* Backup exiting file
742743
if(is_file($full_file_name)) {
@@ -754,9 +755,9 @@ public function process_postfix_config($configfile) {
754755
wf($full_file_name, $content);
755756

756757
//* Changing mode and group of the new created config file
757-
caselog('chmod u=rw,g=r,o= '.$config_dir.'/'.$full_file_name.' &> /dev/null',
758+
caselog('chmod u=rw,g=r,o= '.$full_file_name.' &> /dev/null',
758759
__FILE__, __LINE__, 'chmod on '.$full_file_name, 'chmod on '.$full_file_name.' failed');
759-
caselog('chgrp '.$cf['group'].' '.$config_dir.'/'.$full_file_name.' &> /dev/null',
760+
caselog('chgrp '.$postfix_group.' '.$full_file_name.' &> /dev/null',
760761
__FILE__, __LINE__, 'chgrp on '.$full_file_name, 'chgrp on '.$full_file_name.' failed');
761762

762763
}

0 commit comments

Comments
 (0)