Updated Ubuntu airtime-full-install to fix apache version issue
This commit is contained in:
parent
db49ab3c7f
commit
5af80fcfe3
|
@ -29,6 +29,8 @@ echo "----------------------------------------------------"
|
||||||
|
|
||||||
dist=`lsb_release -is`
|
dist=`lsb_release -is`
|
||||||
code=`lsb_release -cs`
|
code=`lsb_release -cs`
|
||||||
|
apache2 -v | grep "2\.4" > /dev/null
|
||||||
|
apacheversion=$?
|
||||||
|
|
||||||
#enable squeeze backports to get lame packages
|
#enable squeeze backports to get lame packages
|
||||||
if [ "$dist" = "Debian" -a "$code" = "squeeze" ]; then
|
if [ "$dist" = "Debian" -a "$code" = "squeeze" ]; then
|
||||||
|
@ -130,16 +132,18 @@ else
|
||||||
echo "----------------------------------------------------"
|
echo "----------------------------------------------------"
|
||||||
echo "2.1 Apache Config File"
|
echo "2.1 Apache Config File"
|
||||||
echo "----------------------------------------------------"
|
echo "----------------------------------------------------"
|
||||||
if [ ! -f /etc/apache2/sites-available/airtime ]; then
|
|
||||||
|
if [ "$apacheversion" != "1" ]; then
|
||||||
|
airtimeconfigfile="airtime.conf"
|
||||||
|
else
|
||||||
|
airtimeconfigfile="airtime"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f /etc/apache2/sites-available/$airtimeconfigfile ]; then
|
||||||
echo "Creating Apache config for Airtime..."
|
echo "Creating Apache config for Airtime..."
|
||||||
|
|
||||||
if [ "$dist" = "Ubuntu" -a "$code" = "saucy" ]; then
|
cp $SCRIPTPATH/../apache/airtime-vhost /etc/apache2/sites-available/$airtimeconfigfile
|
||||||
cp $SCRIPTPATH/../apache/airtime-vhost /etc/apache2/sites-available/airtime.conf
|
a2dissite 000-default
|
||||||
a2dissite 000-default
|
|
||||||
else
|
|
||||||
cp $SCRIPTPATH/../apache/airtime-vhost /etc/apache2/sites-available/airtime
|
|
||||||
a2dissite default
|
|
||||||
fi
|
|
||||||
a2ensite airtime
|
a2ensite airtime
|
||||||
else
|
else
|
||||||
echo "Apache config for Airtime already exists..."
|
echo "Apache config for Airtime already exists..."
|
||||||
|
|
Loading…
Reference in New Issue