fix: only sighup if we have docker
This commit is contained in:
parent
0ff9e6fdc3
commit
f04b17109b
1 changed files with 5 additions and 1 deletions
|
|
@ -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 })
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue