agregar socat al shell history para acceso fácil
This commit is contained in:
parent
8cba1d2bd0
commit
e9f020454c
1 changed files with 7 additions and 0 deletions
7
index.ts
7
index.ts
|
@ -37,6 +37,13 @@ if (process.argv[2] === "generate-secrets") {
|
||||||
const alpine = await Alpine.makeWorld({ dir: rootfsDir });
|
const alpine = await Alpine.makeWorld({ dir: rootfsDir });
|
||||||
|
|
||||||
await alpine.addPackages(["helix", "htop", "iproute2-ss", "socat"]);
|
await alpine.addPackages(["helix", "htop", "iproute2-ss", "socat"]);
|
||||||
|
await alpine.writeFile(
|
||||||
|
"/root/.ash_history",
|
||||||
|
`
|
||||||
|
socat tcp-listen:80,reuseaddr,fork tcp:localhost:3050 &
|
||||||
|
`,
|
||||||
|
{ uid: 0, gid: 0 }
|
||||||
|
);
|
||||||
await installFluentBit(alpine);
|
await installFluentBit(alpine);
|
||||||
const runit = await Runit.setup(alpine);
|
const runit = await Runit.setup(alpine);
|
||||||
await setupDhcpcd(alpine, runit);
|
await setupDhcpcd(alpine, runit);
|
||||||
|
|
Loading…
Reference in a new issue