Skip to content

Commit 8a13329

Browse files
committed
64-bit only
1 parent 6a266c6 commit 8a13329

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

setup.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ if [ "${EUID}" != 0 ];
1616
exit
1717
fi
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+
1926
LINUX_TYPE=`echo $(lsb_release -i | cut -d':' -f 2)`
2027
UBUNTU_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
8390
apt full-upgrade -y
8491
apt dist-upgrade -y
8592

93+
# Return to /usr/src
94+
cd /usr/src
95+
8696
# EngineScript Git Clone
8797
rm -rf /usr/local/bin/enginescript
8898
git 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
102112
touch /home/EngineScript/install-log.txt
103113

114+
# Return to /usr/src
115+
cd /usr/src
116+
104117
# Create EngineScript Aliases
105118
source /home/EngineScript/install-log.txt
106119
if [ "${ALIAS}" = 1 ];

0 commit comments

Comments
 (0)