You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
I am installing Airtime on a fresh Ubuntu 14.04 and I ran into the error Apache2 command not found when trying to install airtime and then it failed to create the virtualhost and I basically needed to rerun the install process again and it appeared to work. So perhaps this apache version check should happen after the packages are installed ?
The reason will be displayed to describe this comment to others. Learn more.
Hi Robbt, sorry for taking a while to get back to you. I'm aware of a number of potential improvements to the install process, and I've spent a bit of time to apply some of them. The specific fix that this particular commit is performing is to turn off exiting on errors temporarily while we attempt to determine whether apache 2.4 is installed or not. If apache 2.4 is not installed, the line
apache2 -v | grep "2.4" > /dev/null
returns an error code, which makes the script exit immediately and never execute the next line.
For a fresh installation, it would certainly make sense to check the Apache version after packages are installed. I believe the original desire to add this specific apache version check was motivated by an installation where Apache was already installed. I didn't add the original Apache version check, so I can't comment further.
874adf0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am installing Airtime on a fresh Ubuntu 14.04 and I ran into the error Apache2 command not found when trying to install airtime and then it failed to create the virtualhost and I basically needed to rerun the install process again and it appeared to work. So perhaps this apache version check should happen after the packages are installed ?
874adf0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Robbt, sorry for taking a while to get back to you. I'm aware of a number of potential improvements to the install process, and I've spent a bit of time to apply some of them. The specific fix that this particular commit is performing is to turn off exiting on errors temporarily while we attempt to determine whether apache 2.4 is installed or not. If apache 2.4 is not installed, the line
apache2 -v | grep "2.4" > /dev/null
returns an error code, which makes the script exit immediately and never execute the next line.
For a fresh installation, it would certainly make sense to check the Apache version after packages are installed. I believe the original desire to add this specific apache version check was motivated by an installation where Apache was already installed. I didn't add the original Apache version check, so I can't comment further.