-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://discord.com/channels/1228082899023298741/1239053156965679115 --------- Signed-off-by: Jamil <jamilbk@users.noreply.github.com> Co-authored-by: Brian Manifold <bmanifold@users.noreply.github.com> Co-authored-by: Andrew Dryga <andrew@dryga.com> Co-authored-by: Reactor Scram <ReactorScram@users.noreply.github.com> Co-authored-by: Gabi <gabrielalejandro7@gmail.com>
- Loading branch information
1 parent
9c143bc
commit 2ec7034
Showing
5 changed files
with
105 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
"use client"; | ||
import Content from "./readme.mdx"; | ||
|
||
export default function _Page() { | ||
return <Content />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import _Page from "./_page"; | ||
import { Metadata } from "next"; | ||
import LastUpdated from "@/components/LastUpdated"; | ||
|
||
export const metadata: Metadata = { | ||
title: "Uninstall Firezone • Firezone Docs", | ||
description: "How to uninstall Firezone", | ||
}; | ||
|
||
export default function Page() { | ||
return ( | ||
<> | ||
<_Page /> | ||
<LastUpdated dirname={__dirname} /> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
import SupportOptions from "@/components/SupportOptions"; | ||
import { TabsGroup, TabsItem } from "@/components/DocsTabs"; | ||
import Alert from "@/components/DocsAlert"; | ||
|
||
# Uninstall Firezone Gateway | ||
|
||
This guide covers how to uninstall the Firezone Gateway from your server(s). | ||
|
||
{/* TODO: add Alert and link to client uninstall docs when that's complete */} | ||
|
||
## Step 1: Stop the Gateway and remove relevant files | ||
|
||
Use the appropriate instructions below to stop and remove the Gateway depending | ||
on how it was installed: | ||
|
||
<TabsGroup> | ||
<TabsItem title="Docker" active> | ||
|
||
1. Stop the container: | ||
|
||
``` | ||
docker stop firezone-gateway | ||
``` | ||
|
||
1. Remove the container and its volumes: | ||
|
||
``` | ||
docker rm --volumes firezone-gateway | ||
``` | ||
|
||
1. Remove the image: | ||
|
||
``` | ||
docker rmi ghcr.io/firezone/gateway:1 | ||
``` | ||
|
||
1. Remove the cache directory: | ||
|
||
``` | ||
sudo rm -rf /var/lib/firezone | ||
``` | ||
|
||
</TabsItem> | ||
<TabsItem title="systemd"> | ||
|
||
1. Stop the service: | ||
|
||
``` | ||
sudo systemctl stop firezone-gateway | ||
``` | ||
|
||
1. Disable the service: | ||
|
||
``` | ||
sudo systemctl disable firezone-gateway | ||
``` | ||
|
||
1. Remove all relevant files: | ||
|
||
``` | ||
sudo rm -rf /etc/systemd/system/firezone-gateway.service \ | ||
/usr/local/bin/firezone-gateway \ | ||
/usr/local/bin/firezone-gateway-init \ | ||
/var/lib/firezone | ||
``` | ||
|
||
</TabsItem> | ||
</TabsGroup> | ||
|
||
## Step 2 (optional): Delete the data from the admin portal | ||
|
||
If you want to remove the Gateway's data from the admin portal as well, navigate | ||
to the Site where the Gateway was running, click `(see all)` next to the | ||
`Online Gateways` header, and then delete the offline Gateway corresponding to the | ||
Gateway you just uninstalled. | ||
|
||
<SupportOptions /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters