CC-2889: Virtualenv fails when installing through apt repo on Ubuntu Server 10.04
-added sync commands
This commit is contained in:
parent
7bb9e92ac9
commit
cb2f4b5c70
1 changed files with 8 additions and 0 deletions
|
@ -7,6 +7,11 @@ if [ `whoami` != 'root' ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#Sync to force flushing all buffered writes to the disk. We need to do this because
|
||||||
|
#sometimes packages that have been installed by a script before this one are
|
||||||
|
#not yet available to call.
|
||||||
|
sync
|
||||||
|
|
||||||
set +e
|
set +e
|
||||||
DEB=$(dpkg -s airtime 2> /dev/null | grep Status)
|
DEB=$(dpkg -s airtime 2> /dev/null | grep Status)
|
||||||
set -e
|
set -e
|
||||||
|
@ -59,6 +64,9 @@ else
|
||||||
echo -e "\n*** Existing Airtime Virtualenv Found ***"
|
echo -e "\n*** Existing Airtime Virtualenv Found ***"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#Another sync to flush buffered writes to disk.
|
||||||
|
sync
|
||||||
|
|
||||||
virtualenv_bin="/usr/lib/airtime/airtime_virtualenv/bin/"
|
virtualenv_bin="/usr/lib/airtime/airtime_virtualenv/bin/"
|
||||||
. ${virtualenv_bin}activate
|
. ${virtualenv_bin}activate
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue