CC-3320: Upgrade from 2.0->2.0.1: Airtime instance is not avaiable for 1~2mins right after upgrade.

-use clearstatcache function
This commit is contained in:
Martin Konecny 2012-02-12 11:43:34 -05:00
parent 5059d13156
commit 8493180243
2 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,6 @@
<?php
/* The purpose of this file is get PHP to clear its cache regarding the
* filesystem layout. See this ticket http://dev.sourcefabric.org/browse/CC-3320 */
clearstatcache(true);

View file

@ -82,6 +82,11 @@ if [ "$web" = "t" ]; then
rm -rf "/usr/share/airtime"
mkdir -p /usr/share/airtime
cp -R $AIRTIMEROOT/airtime_mvc/* /usr/share/airtime/
#Clear stat cache, and remove the script after running it.
curl http://localhost/install/clearstatcache.php
rm -f /usr/share/airtime/public/install/clearstatcache.php
rmdir -f /usr/share/airtime/public/install
fi
echo "* Creating /var/log/airtime"