fix README and git

This commit is contained in:
2016-07-24 20:17:23 +02:00
parent a4d0654f28
commit ec40f43c9e
4 changed files with 15 additions and 4 deletions

View File

@ -98,6 +98,7 @@ export class Cert {
this.domainCertRequestMap.addString(domainNameArg);
if (!helpers.checkDomainsStillValid(domainNameArg, this._sslDir) || optionsArg.force) {
if (!sameZoneRequesting) {
this.sslGitOriginPull();
plugins.smartfile.fs.ensureDir(paths.certDir);
plugins.beautylog.info(`getting cert for ${domainNameArg}`);
plugins.shelljs.exec(
@ -112,6 +113,9 @@ export class Cert {
if (fetchedCertsArray.indexOf(domainNameArg) != -1) {
helpers.updateSslDirSync(this._sslDir, domainNameArg);
plugins.smartfile.fs.removeSync(plugins.path.join(paths.certDir, domainNameArg));
this.sslGitOriginAddCommitPush();
} else {
plugins.beautylog.error(`Couldn't copy final certificate for ${domainNameArg}!`);
};
done.resolve();
} else {