@@ -147,22 +147,22 @@ const internalCertificate = {
147
147
// 4. Request cert
148
148
return internalCertificate . requestLetsEncryptCloudFlareDnsSsl ( certificate , data . meta . cloudflare_token ) ;
149
149
} )
150
- . then ( internalNginx . reload )
151
- . then ( ( ) => {
152
- // 6. Re-instate previously disabled hosts
153
- return internalCertificate . enableInUseHosts ( in_use_result ) ;
154
- } )
155
- . then ( ( ) => {
156
- return certificate ;
157
- } )
158
- . catch ( ( err ) => {
159
- // In the event of failure, revert things and throw err back
160
- return internalCertificate . enableInUseHosts ( in_use_result )
161
- . then ( internalNginx . reload )
162
- . then ( ( ) => {
163
- throw err ;
164
- } ) ;
165
- } ) ;
150
+ . then ( internalNginx . reload )
151
+ . then ( ( ) => {
152
+ // 6. Re-instate previously disabled hosts
153
+ return internalCertificate . enableInUseHosts ( in_use_result ) ;
154
+ } )
155
+ . then ( ( ) => {
156
+ return certificate ;
157
+ } )
158
+ . catch ( ( err ) => {
159
+ // In the event of failure, revert things and throw err back
160
+ return internalCertificate . enableInUseHosts ( in_use_result )
161
+ . then ( internalNginx . reload )
162
+ . then ( ( ) => {
163
+ throw err ;
164
+ } ) ;
165
+ } ) ;
166
166
} else {
167
167
// 3. Generate the LE config
168
168
return internalNginx . generateLetsEncryptRequestConfig ( certificate )
@@ -784,7 +784,7 @@ const internalCertificate = {
784
784
let storeKey = 'echo "dns_cloudflare_api_token = ' + apiToken + '" > ' + tokenLoc ;
785
785
786
786
let cmd =
787
- storeKey + " && " +
787
+ storeKey + ' && ' +
788
788
certbot_command + ' certonly --non-interactive ' +
789
789
'--cert-name "npm-' + certificate . id + '" ' +
790
790
'--agree-tos ' +
@@ -799,9 +799,9 @@ const internalCertificate = {
799
799
}
800
800
801
801
return utils . exec ( cmd ) . then ( ( result ) => {
802
- logger . info ( result ) ;
803
- return result ;
804
- } ) ;
802
+ logger . info ( result ) ;
803
+ return result ;
804
+ } ) ;
805
805
} ,
806
806
807
807
0 commit comments