Commit 083dc052 authored by tbrehm's avatar tbrehm

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

parent 269b746d
......@@ -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());
......
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