Fix to accommodate running installer from inside an lxc container daemon

This commit is contained in:
Duncan Sommerville 2014-12-17 11:05:02 -05:00
parent eefe8910cf
commit d3fe20824e
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ if [[ $EUID -ne 0 ]]; then
exit 1
fi
AIRTIMEROOT=$(readlink -f ./..)
AIRTIMEROOT="$( cd "$( dirname "$0" )/.." && pwd )"
showhelp () {
echo "Usage: sudo bash install [options]
@ -305,7 +305,7 @@ if [ "$icecast" = "t" ]; then
loud " * Installing Icecast * "
loud "-----------------------------------------------------"
loudCmd "apt-get -y --force-yes install icecast2"
loudCmd "DEBIAN_FRONTEND=noninteractive apt-get -y --force-yes install icecast2"
verbose "\n * Enabling Icecast 2..."
sed -i 's/ENABLE=false/ENABLE=true/g' /etc/default/icecast2