From d3fe20824e61f498783f1c8c549684acd75fc704 Mon Sep 17 00:00:00 2001 From: Duncan Sommerville Date: Wed, 17 Dec 2014 11:05:02 -0500 Subject: [PATCH] Fix to accommodate running installer from inside an lxc container daemon --- installer/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/install b/installer/install index da4c7a103..7cdd24860 100755 --- a/installer/install +++ b/installer/install @@ -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