Skip to content

Commit 6b0723d

Browse files
author
Till Brehm
committed
Fixed chmod notice in installer.
1 parent 9cc1b8e commit 6b0723d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

install/lib/installer_base.lib.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,11 +739,12 @@ public function process_postfix_config($configfile) {
739739
$config_dir = $conf['postfix']['config_dir'].'/';
740740
$postfix_group = $conf['postfix']['group'];
741741
$full_file_name = $config_dir.$configfile;
742+
742743
//* Backup exiting file
743744
if(is_file($full_file_name)) {
744745
copy($full_file_name, $config_dir.$configfile.'~');
746+
chmod($config_dir.$configfile.'~',0600);
745747
}
746-
chmod($config_dir.$configfile.'~',0600);
747748

748749
//* Replace variables in config file template
749750
$content = rfsel($conf['ispconfig_install_dir'].'/server/conf-custom/install/'.$configfile.'.master', 'tpl/'.$configfile.'.master');

0 commit comments

Comments
 (0)