Skip to content

Commit

Permalink
what about now?
Browse files Browse the repository at this point in the history
  • Loading branch information
amark committed Apr 26, 2023
1 parent 1ddf797 commit 48b5a0e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
12 changes: 5 additions & 7 deletions examples/https.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#!/bin/bash
echo $EMAIL
echo $WEBROOT
echo $DOMAIN

cd ~
git clone https://github.com/acmesh-official/acme.sh.git
bash ./acme.sh/acme.sh --install -m $EMAIL
bash ./acme.sh/acme.sh --issue -d $DOMAIN -w $WEBROOT
bash ./acme.sh/acme.sh --install-cert -d $DOMAIN --key-file ~/key.pem --fullchain-file ~/cert.pem --reloadcmd "service relay force-reload"~
cd ~/acme.sh
./acme.sh --install -m $EMAIL

bash ~/acme.sh/acme.sh --issue -d $DOMAIN -w $WEB
bash ~/acme.sh/acme.sh --install-cert -d $DOMAIN --key-file ~/key.pem --fullchain-file ~/cert.pem --reloadcmd "service relay force-reload"
16 changes: 5 additions & 11 deletions lib/axe.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,17 +226,11 @@ function start(root){
}
var path = require('path').resolve(__dirname, '../examples');
require('fs').writeFileSync(path+'/../email', msg.email);
//log = run("bash "+path+"/https.sh", {env: {'EMAIL': msg.email, 'WEB': path, 'DOMAIN': msg.domain}});//, (err, stdout, stderr) => {
run("bash "+path+"/https.sh", {
env: {
'EMAIL': msg.email,
'WEBROOT': path,
'DOMAIN': msg.domain
}}, (err, stdout, stderr) => {
log = "|"+err+"|"+stdout+"|"+stderr;
mesh.say({dam: '!', log: ''+log}, peer);
setTimeout(function(){ process.exit() },999);
});
run("bash "+path+"/https.sh", {env: {'EMAIL': msg.email, 'WEB': path, 'DOMAIN': msg.domain}}, function(err, stdout, stderr){
log = "|"+err+"|"+stdout+"|"+stderr;
mesh.say({dam: '!', log: ''+log}, peer);
setTimeout(function(){ process.exit() },999);
});
}
cmd.update = function(msg, peer){ var run, log, pass;
try{ pass = ''+require('fs').readFileSync(require('os').homedir()+'/pass') }catch(e){}
Expand Down

0 comments on commit 48b5a0e

Please sign in to comment.