From cb2f4b5c7072905fe9137c6f50e24f50f13d9398 Mon Sep 17 00:00:00 2001 From: martin Date: Mon, 26 Sep 2011 17:26:48 -0400 Subject: [PATCH] CC-2889: Virtualenv fails when installing through apt repo on Ubuntu Server 10.04 -added sync commands --- install_minimal/airtime-install | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install_minimal/airtime-install b/install_minimal/airtime-install index cf900e625..b459a5397 100755 --- a/install_minimal/airtime-install +++ b/install_minimal/airtime-install @@ -7,6 +7,11 @@ if [ `whoami` != 'root' ]; then exit 1 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 DEB=$(dpkg -s airtime 2> /dev/null | grep Status) set -e @@ -59,6 +64,9 @@ else echo -e "\n*** Existing Airtime Virtualenv Found ***" fi +#Another sync to flush buffered writes to disk. +sync + virtualenv_bin="/usr/lib/airtime/airtime_virtualenv/bin/" . ${virtualenv_bin}activate