Skip to content

Commit 083dc05

Browse files
committed
Fixed: FS#1596 - No such file or directory in [...]/apache2_plugin.inc.php on line 841
1 parent 269b746 commit 083dc05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ function update($event_name,$data) {
866866

867867
$vhost_file = escapeshellcmd($web_config['vhost_conf_dir'].'/'.$data['new']['domain'].'.vhost');
868868
//* Make a backup copy of vhost file
869-
copy($vhost_file,$vhost_file.'~');
869+
if(file_exists($vhost_file)) copy($vhost_file,$vhost_file.'~');
870870

871871
//* Write vhost file
872872
file_put_contents($vhost_file,$tpl->grab());

0 commit comments

Comments
 (0)