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:
parent
5059d13156
commit
8493180243
2 changed files with 11 additions and 0 deletions
6
airtime_mvc/public/install/clearstatcache.php
Normal file
6
airtime_mvc/public/install/clearstatcache.php
Normal 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);
|
|
@ -82,6 +82,11 @@ if [ "$web" = "t" ]; then
|
||||||
rm -rf "/usr/share/airtime"
|
rm -rf "/usr/share/airtime"
|
||||||
mkdir -p /usr/share/airtime
|
mkdir -p /usr/share/airtime
|
||||||
cp -R $AIRTIMEROOT/airtime_mvc/* /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
|
fi
|
||||||
|
|
||||||
echo "* Creating /var/log/airtime"
|
echo "* Creating /var/log/airtime"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue