From b144a92c4d7c66fc10fb9a1abb4b18865bdaa918 Mon Sep 17 00:00:00 2001 From: Duncan Sommerville Date: Thu, 15 Jan 2015 13:52:12 -0500 Subject: [PATCH] Small fix to uninstall script --- uninstall | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/uninstall b/uninstall index e2c93f344a..12cd87dab7 100755 --- a/uninstall +++ b/uninstall @@ -69,7 +69,7 @@ if [[ ! ( "$IN" = "y" || "$IN" = "Y" ) ]]; then exit 0 fi -if [ -n ${STOR_DIR} ]; then +if [ -n "${STOR_DIR}" ]; then echo -e "\nAre you sure you want to remove your music storage directory ${STOR_DIR} and all of its subdirectories? (Y/n): \c" read IN if [[ "$IN" = "y" || "$IN" = "Y" ]]; then @@ -80,7 +80,9 @@ else fi echo -e "\nUninstalling Airtime..." -removeRabbitmqAirtimeSettings +if [ -f /etc/airtime/airtime.conf ]; then + removeRabbitmqAirtimeSettings +fi rm -rf /etc/airtime rm -rf /var/log/airtime/