cleanup after oneself

This commit is contained in:
LosslessBot
2016-07-13 16:06:16 +02:00
parent 5ccf5b81e2
commit be6fc3adfd
5 changed files with 7 additions and 5 deletions

View File

@ -77,6 +77,7 @@ export class Cert {
let fetchedCertsArray: string[] = plugins.smartfile.fs.listFoldersSync(paths.certDir);
if (fetchedCertsArray.indexOf(domainNameArg) != -1) {
updateSslDirSync(this._sslDir, domainNameArg);
plugins.smartfile.fs.removeSync(plugins.path.join(paths.certDir,domainNameArg));
}
this.sslGitOriginAddCommitPush();
done.resolve();