Initial
This commit is contained in:
@@ -149,11 +149,11 @@ async function runHost(jobId, script, host, executionContext) {
|
||||
return;
|
||||
}
|
||||
|
||||
const secret = decryptSecret(host);
|
||||
const wrapper = buildWrapper(script.content, host, executionContext);
|
||||
const file = path.join(os.tmpdir(), `poshmanager-${jobId}-${host.id}.ps1`);
|
||||
|
||||
try {
|
||||
const secret = decryptSecret(host);
|
||||
const wrapper = buildWrapper(script.content, host, executionContext);
|
||||
await fs.writeFile(file, wrapper, { mode: 0o600 });
|
||||
await spawnPowerShell(jobId, host, file, secret, executionContext);
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user