Files
firezone/scripts/uninstall.sh
Jamil 4687220684 Acme support (#779)
* 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>
2022-07-25 11:47:58 -07:00

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.'