ahh
This commit is contained in:
parent
944ed1cbd4
commit
ba344610ab
|
|
@ -7,10 +7,10 @@ const { stdout: hostRaw } = await $`hostname`.quiet()
|
||||||
const ip = ipRaw.toString().trim()
|
const ip = ipRaw.toString().trim()
|
||||||
const host = hostRaw.toString().trim()
|
const host = hostRaw.toString().trim()
|
||||||
|
|
||||||
console.log(apps().map(app => `avahi-publish -a ${app}.${host} -R ${ip}`).join("\n"))
|
console.log(apps().map(app => `avahi-publish -a ${app}.${host}.local -R ${ip}`).join("\n"))
|
||||||
|
|
||||||
const procs = apps().map(app =>
|
const procs = apps().map(app =>
|
||||||
Bun.spawn(["avahi-publish", "-a", `${app}.${host}`, "-R", ip])
|
Bun.spawn(["avahi-publish", "-a", `${app}.${host}.local`, "-R", ip])
|
||||||
)
|
)
|
||||||
|
|
||||||
for (const p of procs)
|
for (const p of procs)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user