first commit

This commit is contained in:
root
2026-04-08 17:52:38 +08:00
commit 70a2ca66f3
12436 changed files with 1921163 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
const { exec } = require('child_process');
const { promisify } = require('util');
const execAsync = promisify(exec);
async function test() {
const cmd = `/root/.acme.sh/acme.sh --issue --dns -d "*.cnbugs.top" -d "cnbugs.top" --server letsencrypt --yes-I-know-dns-manual-mode-enough-go-ahead-please --force 2>&1`;
console.log('执行命令:', cmd);
try {
const { stdout, stderr } = await execAsync(cmd, {
env: { ...process.env, HOME: '/root' },
shell: '/bin/bash'
});
console.log('stdout:', stdout);
console.log('stderr:', stderr);
} catch (error) {
console.log('错误:', error.message);
console.log('stdout:', error.stdout);
console.log('stderr:', error.stderr);
}
}
test();