File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change 2
2
3
3
4
4
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
+
5
16
# Make Variables Available For Later Use
17
+ LOGDIR=/var/log/easyengine
18
+ INSTALLLOG=/var/log/easyengine/install.log
6
19
LINUX_DISTRO=$( lsb_release -i | awk ' {print $3}' )
7
20
8
21
# Checking Linux Distro Is Ubuntu
13
26
exit 100
14
27
fi
15
28
16
-
17
-
18
29
# Checking Permissions
19
30
if [[ $EUID -ne 0 ]]
20
31
then
23
34
exit 100
24
35
fi
25
36
26
-
27
- # Make Variables Available For Later Use
28
- LOGDIR=/var/log/easyengine
29
- INSTALLLOG=/var/log/easyengine/install.log
30
-
31
-
32
37
# Capture Errors
33
38
OwnError ()
34
39
{
46
51
mkdir -p $LOGDIR || OwnError " Unable To Create Log Directory $LOGDIR "
47
52
fi
48
53
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
-
53
54
# Checking Tee
54
55
if [ ! -x /usr/bin/tee ]
55
56
then
You can’t perform that action at this time.
0 commit comments