|
24 | 24 | # We do this in-case the user is a novice and uploaded the options file using a basic Windows text editor. |
25 | 25 | dos2unix /home/EngineScript/enginescript-install-options.txt |
26 | 26 |
|
| 27 | +# Permissions |
| 28 | +# Just in case you changed any files and changed Permissions |
| 29 | +find /usr/local/bin/enginescript -type d,f -exec chmod 755 {} \; |
| 30 | +chown -R root:root /usr/local/bin/enginescript |
| 31 | + |
27 | 32 | # EngineScript Variables |
28 | 33 | source /usr/local/bin/enginescript/enginescript-variables.txt |
29 | 34 | source /home/EngineScript/enginescript-install-options.txt |
@@ -128,13 +133,22 @@ if [ "${ACME}" = 1 ]; |
128 | 133 | fi |
129 | 134 |
|
130 | 135 | # GCC |
131 | | -#if [ "${GCC}" = 1 ]; |
132 | | -# then |
133 | | -# echo "GCC script has already run." |
134 | | -# else |
135 | | -# /usr/local/bin/enginescript/scripts/install/gcc/gcc-install.sh |
136 | | -# echo "GCC=1" >> /home/EngineScript/install-log.txt |
137 | | -#fi |
| 136 | +if [ "${GCC}" = 1 ]; |
| 137 | + then |
| 138 | + echo "GCC script has already run." |
| 139 | + else |
| 140 | + /usr/local/bin/enginescript/scripts/install/gcc/gcc-install.sh |
| 141 | + echo "GCC=1" >> /home/EngineScript/install-log.txt |
| 142 | +fi |
| 143 | + |
| 144 | +# OpenSSL |
| 145 | +if [ "${OPENSSL}" = 1 ]; |
| 146 | + then |
| 147 | + echo "OPENSSL script has already run." |
| 148 | + else |
| 149 | + /usr/local/bin/enginescript/scripts/install/openssl/openssl-install.sh |
| 150 | + echo "OPENSSL=1" >> /home/EngineScript/install-log.txt |
| 151 | +fi |
138 | 152 |
|
139 | 153 | # Jemalloc |
140 | 154 | if [ "${JEMALLOC}" = 1 ]; |
@@ -262,6 +276,15 @@ if [ "${CRON}" = 1 ]; |
262 | 276 | echo "CRON=1" >> /home/EngineScript/install-log.txt |
263 | 277 | fi |
264 | 278 |
|
| 279 | +# MariaDB |
| 280 | +if [ "${MARIADB}" = 1 ]; |
| 281 | + then |
| 282 | + echo "MARIADB script has already run." |
| 283 | + else |
| 284 | + /usr/local/bin/enginescript/scripts/install/mariadb/mariadb-install.sh |
| 285 | + echo "MARIADB=1" >> /home/EngineScript/install-log.txt |
| 286 | +fi |
| 287 | + |
265 | 288 | # PHP |
266 | 289 | if [ "${PHP}" = 1 ]; |
267 | 290 | then |
@@ -289,15 +312,6 @@ if [ "${NGINX}" = 1 ]; |
289 | 312 | echo "NGINX=1" >> /home/EngineScript/install-log.txt |
290 | 313 | fi |
291 | 314 |
|
292 | | -# MariaDB |
293 | | -if [ "${MARIADB}" = 1 ]; |
294 | | - then |
295 | | - echo "MARIADB script has already run." |
296 | | - else |
297 | | - /usr/local/bin/enginescript/scripts/install/mariadb/mariadb-install.sh |
298 | | - echo "MARIADB=1" >> /home/EngineScript/install-log.txt |
299 | | -fi |
300 | | - |
301 | 315 | # Tools |
302 | 316 | if [ "${TOOLS}" = 1 ]; |
303 | 317 | then |
|
0 commit comments