Skip to content
Snippets Groups Projects
Commit 083dc052 authored by tbrehm's avatar tbrehm
Browse files

Fixed: FS#1596 - No such file or directory in [...]/apache2_plugin.inc.php on line 841

parent 269b746d
No related branches found
No related tags found
2 merge requests!46Master,!21Master
......@@ -866,7 +866,7 @@ class apache2_plugin {
$vhost_file = escapeshellcmd($web_config['vhost_conf_dir'].'/'.$data['new']['domain'].'.vhost');
//* Make a backup copy of vhost file
copy($vhost_file,$vhost_file.'~');
if(file_exists($vhost_file)) copy($vhost_file,$vhost_file.'~');
//* Write vhost file
file_put_contents($vhost_file,$tpl->grab());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment