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
|
||||
a2ensite airtime
|
||||
a2enmod rewrite php5
|
||||
service apache2 reload
|
||||
service apache2 restart
|
||||
else
|
||||
echo "Apache config for Airtime already exists..."
|
||||
fi
|
||||
|
|
|
@ -86,6 +86,13 @@ ZENDFRAMEWORK=$?
|
|||
|
||||
dpkg -l | grep libzend-framework-php > /dev/null 2>&1
|
||||
LIBZEND=$?
|
||||
|
||||
dpkg -l | grep lsof > /dev/null 2>&1
|
||||
LSOF_EXIST=$?
|
||||
|
||||
dpkg -l | grep sudo > /dev/null 2>&1
|
||||
SUDO_EXIST=$?
|
||||
|
||||
set -e
|
||||
|
||||
if [ "$ZENDFRAMEWORK" != "0" -a "$LIBZEND" != "0" ]; then
|
||||
|
@ -93,6 +100,11 @@ if [ "$ZENDFRAMEWORK" != "0" -a "$LIBZEND" != "0" ]; then
|
|||
exit 1
|
||||
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
|
||||
set +e
|
||||
php --php-ini ${SCRIPTPATH}/airtime-php.ini ${SCRIPTPATH}/include/airtime-installed-check.php
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue