#!/bin/sh

# This script will uninstall FileZilla 3.0.11 that was installed using the
# filezilla_install.sh script
# This script must be run as root with 755 permission
#
# Authored by Bob Nelson  admin@stchman.com
#

script_name="filezilla_uninstall.sh"

# Script must run as root 
if [ $USER != "root" ]; then
	echo "You need to run this script as root."
	echo "Use 'sudo ./$script_name' then enter your password when prompted."
	exit 1
fi

# Remove the FileZilla binaries and all sub folders
sudo rm -r -f /opt/FileZilla3

# Remove the menu entry
sudo rm -f /usr/share/applications/filezilla.desktop

# Remove the shortcut from the /usr/bin folder
sudo rm -f /usr/bin/filezilla

# This install does not remove the mail, contacts, or filters from your profile
echo "If you want to remove your FTP settings then remove the ~/.filezilla folder manually"

