Commit 4586d500 authored by hellkat's avatar hellkat

Implemented FS#2593 - PHP Warning: chmod(): No such file or directory in...

Implemented FS#2593 - PHP Warning: chmod(): No such file or directory in /root/ispconfig3_install/install/dist/lib/debian60.lib.php
parent 10b4c85a
...@@ -95,8 +95,8 @@ class installer extends installer_base { ...@@ -95,8 +95,8 @@ class installer extends installer_base {
$configfile = 'dovecot-sql.conf'; $configfile = 'dovecot-sql.conf';
if(is_file($config_dir.'/'.$configfile)){ if(is_file($config_dir.'/'.$configfile)){
copy($config_dir.'/'.$configfile, $config_dir.'/'.$configfile.'~'); copy($config_dir.'/'.$configfile, $config_dir.'/'.$configfile.'~');
chmod($config_dir.'/'.$configfile.'~', 0400);
} }
chmod($config_dir.'/'.$configfile.'~', 0400);
$content = rf('tpl/debian6_dovecot-sql.conf.master'); $content = rf('tpl/debian6_dovecot-sql.conf.master');
$content = str_replace('{mysql_server_ispconfig_user}',$conf['mysql']['ispconfig_user'],$content); $content = str_replace('{mysql_server_ispconfig_user}',$conf['mysql']['ispconfig_user'],$content);
$content = str_replace('{mysql_server_ispconfig_password}',$conf['mysql']['ispconfig_password'], $content); $content = str_replace('{mysql_server_ispconfig_password}',$conf['mysql']['ispconfig_password'], $content);
...@@ -126,4 +126,4 @@ class installer extends installer_base { ...@@ -126,4 +126,4 @@ class installer extends installer_base {
} }
} }
?> ?>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment