fix: only sighup if we have docker

This commit is contained in:
Aarnav Tale 2024-04-17 17:44:12 -04:00
parent 0ff9e6fdc3
commit f04b17109b
No known key found for this signature in database

View File

@ -46,7 +46,11 @@ export async function action({ request }: ActionFunctionArgs) {
const data = await request.json() as { acl: string }
await patchAcl(data.acl)
await sighupHeadscale()
if (context.hasDockerSock) {
await sighupHeadscale()
}
return json({ success: true })
}