Skip to content

Commit

Permalink
Small fix to uninstall script
Browse files Browse the repository at this point in the history
  • Loading branch information
dpsommer committed Jan 15, 2015
1 parent 36c5d22 commit b144a92
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions uninstall
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/
Expand Down

0 comments on commit b144a92

Please sign in to comment.