Revision 8fa84573
Added by Luiz Souza over 3 years ago
src/etc/inc/pkg-utils.inc | ||
---|---|---|
1556 | 1556 |
$idfile = "/var/db/uniqueid"; |
1557 | 1557 |
$repopath = "/usr/local/share/{$g['product_name']}/pkg/repos"; |
1558 | 1558 |
$configflename = "{$repopath}/{$g['product_name']}-repo-custom.conf"; |
1559 |
$cafilesrc = "/usr/local/share/{$g['product_name']}/ssl/netgate-ca.pem"; |
|
1560 |
$cafile = "/etc/ssl/netgate-ca.pem"; |
|
1559 | 1561 |
|
1560 | 1562 |
/* |
1561 | 1563 |
* Update the list of available repositories from the server. This will allow |
... | ... | |
1568 | 1570 |
if (!file_exists($idfile) || !function_exists('curl_version')) { |
1569 | 1571 |
return; |
1570 | 1572 |
} |
1573 |
/* Copy the CA file to the proper place before start. */ |
|
1574 |
if (!file_exists($cafile) && file_exists($cafilesrc)) { |
|
1575 |
copy($cafilesrc, $cafile); |
|
1576 |
} |
|
1571 | 1577 |
/* |
1572 | 1578 |
* If the custom repository definition does not exist, or is more |
1573 | 1579 |
* than 24 hours old fetch a copy from the server |
Also available in: Unified diff
Copy the Netgate CA file to the proper place before start.