certificate: Make certificate location dynamic.

* certificate: Make certificate location dynamic.

* Update certificate location for old servers.
This commit is contained in:
Akash Nimare
2019-11-01 19:56:22 +05:30
committed by GitHub
parent 3b14684058
commit 17d4d97e2e
3 changed files with 134 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ class CertificateUtil {
}
setCertificate(server: string, fileName: string): void {
const filePath = `${certificatesDir}/${fileName}`;
const filePath = `${fileName}`;
this.db.push(`/${server}`, filePath, true);
this.reloadDB();
}