#!/bin/bash #Check if root user if [ `whoami` != 'root' ]; then echo "Please run as root user." exit 1 fi echo -e "\n******************************* Uninstall Begin ********************************" # Absolute path to this script, e.g. /home/user/bin/foo.sh SCRIPT=`readlink -f $0` # Absolute path this script is in, thus /home/user/bin SCRIPTPATH=`dirname $SCRIPT` virtualenv_bin="/usr/lib/airtime/airtime_virtualenv/bin/" . ${virtualenv_bin}activate #Uninitialize Airtime $SCRIPTPATH/include/airtime-uninitialize.sh #Remove Airtime files $SCRIPTPATH/include/airtime-remove-files.sh #Remove pypo user python $SCRIPTPATH/../python_apps/remove-pypo-user.py #deactivate virtualenv deactivate echo -e "\n****************************** Uninstall Complete *******************************\n" echo "NOTE: To fully remove all Airtime files, you will also have to manually delete" echo " the directories '/srv/airtime'(default storage location of media files)" echo -e " and '/etc/airtime'(where the config files are stored).\n"