File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,6 +16,13 @@ if [ "${EUID}" != 0 ];
1616 exit
1717fi
1818
19+ if [ ${BIT_TYPE} != ' x86_64' ];
20+ then
21+ echo " EngineScript requires a 64-bit environment to run optimally."
22+ exit
23+ fi
24+
25+
1926LINUX_TYPE=` echo $( lsb_release -i | cut -d' :' -f 2) `
2027UBUNTU_RELEASE=` echo $( lsb_release -c | cut -d' :' -f 2) `
2128# Testing alternate verification method
@@ -83,6 +90,9 @@ apt install -y boxes dos2unix git nano pwgen software-properties-common tzdata u
8390apt full-upgrade -y
8491apt dist-upgrade -y
8592
93+ # Return to /usr/src
94+ cd /usr/src
95+
8696# EngineScript Git Clone
8797rm -rf /usr/local/bin/enginescript
8898git clone --depth 1 https://github.com/EngineScript/EngineScript.git -b master /usr/local/bin/enginescript
@@ -101,6 +111,9 @@ mkdir -p /home/EngineScript/sites-list
101111# mkdir -p /home/EngineScript/zImageOptimizer-time-marker
102112touch /home/EngineScript/install-log.txt
103113
114+ # Return to /usr/src
115+ cd /usr/src
116+
104117# Create EngineScript Aliases
105118source /home/EngineScript/install-log.txt
106119if [ " ${ALIAS} " = 1 ];
You can’t perform that action at this time.
0 commit comments