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