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:
parent
a253635f7e
commit
73a91e6982
|
@ -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/"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue