CC-3072: Test upgrade to 2.0.0 from 1.8.0 and up (including minor versions, except 1.9.1)
This commit is contained in:
parent
8231df6c44
commit
d71c2289ac
4 changed files with 54 additions and 7 deletions
|
@ -7,6 +7,8 @@ if [ `whoami` != 'root' ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
export AIRTIME_INSTALL_DEBUG=1
|
||||
|
||||
set +e
|
||||
DEB=$(dpkg -s airtime 2> /dev/null | grep Status)
|
||||
set -e
|
||||
|
@ -22,7 +24,14 @@ SCRIPTPATH=`dirname $SCRIPT`
|
|||
AIRTIMEROOT=$SCRIPTPATH/../
|
||||
|
||||
# Check if airtime exists already
|
||||
set +e
|
||||
php --php-ini ${SCRIPTPATH}/airtime-php.ini ${SCRIPTPATH}/include/airtime-installed-check.php $@
|
||||
result=$?
|
||||
set -e
|
||||
|
||||
if [ "$result" = "2" -o "$result" = "3" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo -e "\n******************************** Install Begin *********************************"
|
||||
|
||||
|
@ -30,6 +39,11 @@ rm -rf "/usr/lib/airtime"
|
|||
$AIRTIMEROOT/python_apps/python-virtualenv/virtualenv-install.sh
|
||||
python $AIRTIMEROOT/python_apps/create-pypo-user.py
|
||||
|
||||
if [ "$result" = "1" ]; then
|
||||
#do upgrade
|
||||
php --php-ini ${SCRIPTPATH}/airtime-php.ini ${SCRIPTPATH}/include/airtime-upgrade.php $@
|
||||
fi
|
||||
|
||||
$SCRIPTPATH/include/airtime-copy-files.sh
|
||||
$SCRIPTPATH/include/airtime-initialize.sh $@
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue