Compare commits
No commits in common. "9af663a0c960ba2d5307824d1336a6851d5a9027" and "6e3ab487200147793b72736b6d78d1c3057341eb" have entirely different histories.
9af663a0c9
...
6e3ab48720
3 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@ import {
|
||||||
import { tmpdir } from "node:os";
|
import { tmpdir } from "node:os";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { cwd } from "node:process";
|
import { cwd } from "node:process";
|
||||||
import { execFile } from "./helpers/better-api.js";
|
import { execFile } from "./helpers/better-api";
|
||||||
|
|
||||||
export class Alpine {
|
export class Alpine {
|
||||||
dir: string;
|
dir: string;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { getuid } from "node:process";
|
import { getuid } from "node:process";
|
||||||
import { execFile } from "./better-api.js";
|
import { execFile } from "./better-api";
|
||||||
|
|
||||||
export async function sudoChown(path: string, owner: string): Promise<void> {
|
export async function sudoChown(path: string, owner: string): Promise<void> {
|
||||||
await execFile("sudo", ["chown", owner, path]);
|
await execFile("sudo", ["chown", owner, path]);
|
||||||
|
|
|
@ -111,7 +111,7 @@ exec chpst -P getty 38400 ttyS0 linux`,
|
||||||
`#!/bin/sh
|
`#!/bin/sh
|
||||||
exec logger -p daemon.info -t '${name}'`
|
exec logger -p daemon.info -t '${name}'`
|
||||||
);
|
);
|
||||||
await this.alpine.sudoSymlink(
|
await this.alpine.symlink(
|
||||||
`/run/runit/supervise.${name}.log`,
|
`/run/runit/supervise.${name}.log`,
|
||||||
path.join("/etc/sv/", name, "/log/supervise")
|
path.join("/etc/sv/", name, "/log/supervise")
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue