Skip to content

Commit

Permalink
Fix bunfix passing env
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Mar 19, 2024
1 parent 78910ad commit 50a26ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/executor/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default async function runConfig(config, domain, writer, sandbox = false)
const optIdx = opts.findIndex(x => !!(x && x.domain))
if (optIdx >= 0) {
const lockPath = 'virtualmin-' + opts[optIdx].domain;
return executeLock(lockPath, corePromise)
return executeLock(lockPath, corePromise)
} else {
return corePromise();
}
Expand Down Expand Up @@ -503,7 +503,7 @@ export default async function runConfig(config, domain, writer, sandbox = false)
await writeLog("$> Changing Bun engine to " + (value || 'latest'));
await sshExec("command -v pathman &> /dev/null || (curl -sS https://webinstall.dev/pathman | bash) ; source ~/.bashrc");
await sshExec(`curl -sS https://webinstall.dev/bun${arg} | bash ; source ~/.config/envman/PATH.env`);
await sshExec(`(cd ~/.local/bin/; wget -qO- https://github.com/domcloud/proxy-fix/releases/download/v0.1.2/proxy-fix-linux-amd64.tar.gz | tar xz && mv proxy-fix-linux-amd64 bunfix)`);
await sshExec(`(cd ~/.local/bin/; wget -qO- https://github.com/domcloud/proxy-fix/releases/download/v0.1.3/proxy-fix-linux-amd64.tar.gz | tar xz && mv proxy-fix-linux-amd64 bunfix)`);
await sshExec("bun --version");
}
break;
Expand Down

0 comments on commit 50a26ac

Please sign in to comment.