CC-3787- On upgrade, make sure user has all required debian packages.
-Just checking for the new packages introduced in 2.1 for now...
This commit is contained in:
parent
a734540e5b
commit
532dd036c1
2 changed files with 13 additions and 1 deletions
|
@ -64,7 +64,7 @@ if [ ! -f /etc/apache2/sites-available/airtime ]; then
|
||||||
a2dissite default
|
a2dissite default
|
||||||
a2ensite airtime
|
a2ensite airtime
|
||||||
a2enmod rewrite php5
|
a2enmod rewrite php5
|
||||||
service apache2 reload
|
service apache2 restart
|
||||||
else
|
else
|
||||||
echo "Apache config for Airtime already exists..."
|
echo "Apache config for Airtime already exists..."
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -86,6 +86,13 @@ ZENDFRAMEWORK=$?
|
||||||
|
|
||||||
dpkg -l | grep libzend-framework-php > /dev/null 2>&1
|
dpkg -l | grep libzend-framework-php > /dev/null 2>&1
|
||||||
LIBZEND=$?
|
LIBZEND=$?
|
||||||
|
|
||||||
|
dpkg -l | grep lsof > /dev/null 2>&1
|
||||||
|
LSOF_EXIST=$?
|
||||||
|
|
||||||
|
dpkg -l | grep sudo > /dev/null 2>&1
|
||||||
|
SUDO_EXIST=$?
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ "$ZENDFRAMEWORK" != "0" -a "$LIBZEND" != "0" ]; then
|
if [ "$ZENDFRAMEWORK" != "0" -a "$LIBZEND" != "0" ]; then
|
||||||
|
@ -93,6 +100,11 @@ if [ "$ZENDFRAMEWORK" != "0" -a "$LIBZEND" != "0" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$LSOF_EXIST" != "0" -o "$SUDO_EXIST" != "0" ]; then
|
||||||
|
echo "Packages missing. Please run airtime-full-install"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if airtime exists already
|
# Check if airtime exists already
|
||||||
set +e
|
set +e
|
||||||
php --php-ini ${SCRIPTPATH}/airtime-php.ini ${SCRIPTPATH}/include/airtime-installed-check.php
|
php --php-ini ${SCRIPTPATH}/airtime-php.ini ${SCRIPTPATH}/include/airtime-installed-check.php
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue