CC-3357: Upgrade script to 2.0.2 doesn't work

- It was deleting /user/lib/airtime after it installs virtualenv. rm comand is
ran before anything.
This commit is contained in:
james 2012-02-24 21:00:59 -05:00
parent a253635f7e
commit 73a91e6982
2 changed files with 1 additions and 3 deletions

View File

@ -155,9 +155,8 @@ export python_service=$?
set -e
echo -e "\n******************************** Install Begin *********************************"
rm -rf "/usr/lib/airtime"
if [ "$python_service" -eq "0" ]; then
rm -rf "/usr/lib/airtime"
$AIRTIMEROOT/python_apps/python-virtualenv/virtualenv-install.sh
virtualenv_bin="/usr/lib/airtime/airtime_virtualenv/bin/"

View File

@ -53,7 +53,6 @@ MIN=$(($RANDOM%60))
echo "$MIN $HOUR * * * root /usr/lib/airtime/utils/phone_home_stat" > /etc/cron.d/airtime-crons
echo "* Creating /usr/lib/airtime"
rm -rf "/usr/lib/airtime"
if [ "$python_service" -eq "0" ]; then
python $AIRTIMEROOT/python_apps/api_clients/install/api_client_install.py