Update installer to work with saas branch

This commit is contained in:
Duncan Sommerville 2015-06-23 19:02:55 -04:00
parent d48e594dcd
commit 4c797cf100
13 changed files with 168 additions and 144 deletions

View file

@ -23,6 +23,7 @@ dropAirtimeDatabase() {
su postgres <<'EOF'
set +e
# DROP DATABASE cannot be executed from a function or multi-command string
psql -d postgres -tAc "DROP DATABASE IF EXISTS airtime_test"
psql -d postgres -tAc "DROP DATABASE IF EXISTS airtime"
psql -d postgres -tAc "DROP USER IF EXISTS airtime"
set -e
@ -87,7 +88,10 @@ else
fi
echo -e "\nUninstalling Airtime..."
service airtime-celery stop
set +e
removeRabbitmqAirtimeSettings
set -e
for i in ${FILES[*]}; do
rm -rf $i