Skip to content

Commit a8279ba

Browse files
author
Till Brehm
committed
Write hhvm custom php.ini only when /etc/hhvm exists.
1 parent ce68505 commit a8279ba

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
@@ -3062,7 +3062,7 @@ private function hhvm_update($data, $web_config) {
30623062
// Make sure we only have Unix linebreaks
30633063
$custom_php_ini_settings = str_replace("\r\n", "\n", $custom_php_ini_settings);
30643064
$custom_php_ini_settings = str_replace("\r", "\n", $custom_php_ini_settings);
3065-
file_put_contents('/etc/hhvm/'.$data['new']['system_user'].'.ini', $custom_php_ini_settings);
3065+
if(@is_dir('/etc/hhvm')) file_put_contents('/etc/hhvm/'.$data['new']['system_user'].'.ini', $custom_php_ini_settings);
30663066
} else {
30673067
if($data['old']['system_user'] != '' && is_file('/etc/hhvm/'.$data['old']['system_user'].'.ini')) unlink('/etc/hhvm/'.$data['old']['system_user'].'.ini');
30683068
}

0 commit comments

Comments
 (0)