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 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
619LINUX_DISTRO=$( lsb_release -i | awk ' {print $3}' )
720
821# Checking Linux Distro Is Ubuntu
1326 exit 100
1427fi
1528
16-
17-
1829# Checking Permissions
1930if [[ $EUID -ne 0 ]]
2031then
2334 exit 100
2435fi
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
3338OwnError ()
3439{
4651 mkdir -p $LOGDIR || OwnError " Unable To Create Log Directory $LOGDIR "
4752fi
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
5455if [ ! -x /usr/bin/tee ]
5556then
You can’t perform that action at this time.
0 commit comments