Release: fix portable runtime and updater
This commit is contained in:
1 parent
659e4467e0
commit
978930f4d2
5 files changed
+45
-6
No files matched your search
@@ -558,6 +558,16 @@ int main(int argc, char** argv)
|
||||
std::cerr << "Cannot export ECHOION_HOME\n";
|
||||
return 2;
|
||||
}
|
||||
if (!environmentPath("SSL_CERT_FILE")) {
|
||||
if (const auto certificateBundle =
|
||||
Echoion::Standalone::bundledCertificateBundle(installRoot)) {
|
||||
const auto bundleString = certificateBundle->string();
|
||||
if (::setenv("SSL_CERT_FILE", bundleString.c_str(), 0) != 0) {
|
||||
std::cerr << "Cannot export bundled TLS certificate store\n";
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const std::string_view requiredValue : {"--config", "--state-dir"}) {
|
||||
if (hasArgument(argc, argv, requiredValue) &&
|
||||
!optionalArgumentPath(argc, argv, requiredValue)) {
|
||||
|
||||
Reference in new issue
Block a user