mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 02:54:38 +00:00
firmware: deleting the file under configd execution and copy...; closes #5396
... leaves us with permission 640 even though we have copied a 644 file. Removing the unlink() makes this work without a chmod but the unlink is there for the fact that /etc/ssl/cert.pem used to be a symlink and could clobber the actual file linked which was the original package provided. Might be an umask issue, but better leave it where it is.
This commit is contained in:
parent
5b42f2229f
commit
7a68bab085
@ -738,6 +738,7 @@ function system_trust_configure($verbose = false)
|
||||
copy($ca_cert_pem, '/usr/local/etc/ssl/cert.pem');
|
||||
@unlink('/etc/ssl/cert.pem'); /* do not clobber symlink target */
|
||||
copy($ca_cert_pem, '/etc/ssl/cert.pem');
|
||||
chmod('/etc/ssl/cert.pem', 0644);
|
||||
}
|
||||
|
||||
if ($verbose) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user