Small fix to uninstall script

This commit is contained in:
Duncan Sommerville 2015-01-15 13:52:12 -05:00
parent 36c5d22e25
commit b144a92c4d
1 changed files with 4 additions and 2 deletions

View File

@ -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/