mirror of
https://github.com/tale/headplane.git
synced 2026-09-04 19:25:43 +00:00
fix: only sighup if we have docker
This commit is contained in:
@@ -46,7 +46,11 @@ export async function action({ request }: ActionFunctionArgs) {
|
|||||||
|
|
||||||
const data = await request.json() as { acl: string }
|
const data = await request.json() as { acl: string }
|
||||||
await patchAcl(data.acl)
|
await patchAcl(data.acl)
|
||||||
await sighupHeadscale()
|
|
||||||
|
if (context.hasDockerSock) {
|
||||||
|
await sighupHeadscale()
|
||||||
|
}
|
||||||
|
|
||||||
return json({ success: true })
|
return json({ success: true })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user