mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
32 lines
858 B
Bash
Executable File
32 lines
858 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 '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.'
|