diff --git a/install.sh b/install.sh index 544da491..b3ef73c4 100644 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ # Make Variables Available For Later Use -LINUX_DISTRO=$(lsb_release -i | cut -d':' -f2 | awk '{print $1}') +LINUX_DISTRO=$(lsb_release -i |awk '{print $3}') # Checking Linux Distro Is Ubuntu if [ "$LINUX_DISTRO" != "Ubuntu" ] && [ "$LINUX_DISTRO" != "Debian" ] diff --git a/usr/local/sbin/easyengine b/usr/local/sbin/easyengine index fffb7c81..1ffc03d7 100644 --- a/usr/local/sbin/easyengine +++ b/usr/local/sbin/easyengine @@ -4,7 +4,7 @@ LOGDIR=/var/log/easyengine ERRORLOG=/var/log/easyengine/error.log INSTALLLOG=/var/log/easyengine/install.log -LINUX_DISTRO=$(lsb_release -i | cut -d':' -f2 | awk '{print $1}') +LINUX_DISTRO=$(lsb_release -i |awk '{print $3}') EE_IP_ADDRESS=$(grep ip_address /etc/easyengine/ee.conf | cut -d'=' -f2 |sed 's/ //g' | tr ',' '\n') # Main EasyEngine Function To Log All The Outputs diff --git a/usr/local/sbin/eeupdate b/usr/local/sbin/eeupdate index 84cd5e49..17ac7d7f 100644 --- a/usr/local/sbin/eeupdate +++ b/usr/local/sbin/eeupdate @@ -3,7 +3,7 @@ # Make Variables Available For Later Use INSTALLLOG=/var/log/easyengine/install.log -LINUX_DISTRO=$(lsb_release -i | cut -d':' -f2 | awk '{print $1}') +LINUX_DISTRO=$(lsb_release -i |awk '{print $3}') # Capture Errors OwnError() @@ -487,7 +487,7 @@ EE134() apt-get update &>> $INSTALLLOG || OwnError "Unable To Update APT Cache" # Update Nginx - apt-get -o Dpkg::Options::="--force-confold" install nginx-custom \ + apt-get -o Dpkg::Options::="--force-confold" -y install nginx-custom \ || OwnError "Unable To Update Nginx" fi }