Compare commits

..

2 commits

Author SHA1 Message Date
9af663a0c9 runit: arreglar addService 2023-02-07 18:34:06 -03:00
7b978c3bea arreglar imports 2023-02-02 19:23:39 -03:00
3 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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]);

View file

@ -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")
);