close file after write process
This commit is contained in:
parent
e91b4bc2ac
commit
ca26bcc581
1 changed files with 1 additions and 0 deletions
|
@ -17,6 +17,7 @@ if (!strpos($data, 'BEGIN CERTIFICATE')) {
|
|||
$pem = "-----BEGIN CERTIFICATE-----\n".$pem."-----END CERTIFICATE-----\n";
|
||||
$fh = fopen($to, 'w');
|
||||
fwrite($fh, $pem);
|
||||
fclose($fh);
|
||||
}
|
||||
|
||||
OC_Mount_Config::createCertificateBundle();
|
||||
|
|
Loading…
Reference in a new issue