Skip to content

Commit 6eb7fb6

Browse files
committed
Fixed Issue EasyEngine#206
1 parent c846aad commit 6eb7fb6

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

install.sh

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,20 @@
22

33

44

5+
# Update The APT Cache
6+
echo -e "\033[34mUpdating APT Cache, Please Wait...\e[0m"
7+
apt-get update &>> /dev/null
8+
9+
# Checking lsb_release
10+
if [ ! -x /usr/bin/lsb_release ]; then
11+
echo -e "\033[31mThe lsb_release Command Not Found\e[0m"
12+
echo -e "\033[34mInstalling lsb-release, Please Wait...\e[0m"
13+
apt-get -y install lsb-release &>> /dev/null
14+
fi
15+
516
# Make Variables Available For Later Use
17+
LOGDIR=/var/log/easyengine
18+
INSTALLLOG=/var/log/easyengine/install.log
619
LINUX_DISTRO=$(lsb_release -i |awk '{print $3}')
720

821
# Checking Linux Distro Is Ubuntu
@@ -13,8 +26,6 @@ then
1326
exit 100
1427
fi
1528

16-
17-
1829
# Checking Permissions
1930
if [[ $EUID -ne 0 ]]
2031
then
@@ -23,12 +34,6 @@ then
2334
exit 100
2435
fi
2536

26-
27-
# Make Variables Available For Later Use
28-
LOGDIR=/var/log/easyengine
29-
INSTALLLOG=/var/log/easyengine/install.log
30-
31-
3237
# Capture Errors
3338
OwnError()
3439
{
@@ -46,10 +51,6 @@ then
4651
mkdir -p $LOGDIR || OwnError "Unable To Create Log Directory $LOGDIR"
4752
fi
4853

49-
# Update The APT Cache
50-
echo -e "\033[34mUpdating APT Cache, Please Wait...\e[0m"
51-
apt-get update &>> $INSTALLLOG || OwnError "Unable To Update APT Cache"
52-
5354
# Checking Tee
5455
if [ ! -x /usr/bin/tee ]
5556
then

0 commit comments

Comments
 (0)