Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Commit

Permalink
fix(config): 🩹 update HTTPS files verification
Browse files Browse the repository at this point in the history
handle https files separately than other files
as it shouldn't raise an error if not existing nor failing.
  • Loading branch information
LBF38 committed Dec 2, 2023
1 parent e3e8062 commit 4c7e60c
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -699,11 +699,17 @@ public boolean importConfig() {
Files.copy(config, Constants.getConfigFile(this));
Files.copy(privateKey, Constants.getPrivateKeyFile(this));
Files.copy(publicKey, Constants.getPublicKeyFile(this));
Files.copy(httpsCert, Constants.getHttpsCertFile(this));
Files.copy(httpsKey, Constants.getHttpsKeyFile(this));
} catch (IOException e) {
Log.w(TAG, "Failed to import config", e);
}
if (httpsCert.exists() && httpsKey.exists()) {
try {
Files.copy(httpsCert, Constants.getHttpsCertFile(this));
Files.copy(httpsKey, Constants.getHttpsKeyFile(this));
} catch (IOException e) {
Log.w(TAG, "Failed to import HTTPS config files", e);
}
}
launchStartupTask();
});
return true;
Expand Down

0 comments on commit 4c7e60c

Please sign in to comment.