mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
* Bump nodejs to 16 lts (#772) * Move docs to Docusaurus (#726) * wait 10 Co-authored-by: Andrew <andrew@firezone.dev> Co-authored-by: Chetan Verma <chetan61verma@gmail.com>
35 lines
941 B
Bash
Executable File
35 lines
941 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo 'Removing Firezone network settings...'
|
|
firezone-ctl teardown-network
|
|
|
|
echo 'Removing all Firezone directories...'
|
|
firezone-ctl cleanse yes
|
|
|
|
echo 'Stopping ACME from renewing certificates...'
|
|
firezone-ctl stop-cert-renewal
|
|
|
|
echo 'Removing firezone package...'
|
|
if type apt-get > /dev/null; then
|
|
DEBIAN_FRONTEND=noninteractive apt-get remove -y --purge firezone
|
|
elif type yum > /dev/null; then
|
|
yum remove -y firezone
|
|
elif type zypper > /dev/null; then
|
|
zypper --non-interactive remove -y -u firezone
|
|
else
|
|
echo 'Warning: package management tool not found; not '\
|
|
'removing installed package. This can happen if your'\
|
|
' package management tool (e.g. yum, apt, etc) is no'\
|
|
't in your $PATH. Continuing...'
|
|
fi
|
|
|
|
echo 'Removing remaining directories...'
|
|
rm -rf \
|
|
/var/opt/firezone \
|
|
/var/log/firezone \
|
|
/etc/firezone \
|
|
/usr/bin/firezone-ctl \
|
|
/opt/firezone
|
|
|
|
echo 'Done! Firezone has been uninstalled.'
|