Skip to content

Commit 6a266c6

Browse files
committed
Updated Brotli Setup
Brotli was failing due to a few reasons. Pushed through code to cd to /usr/src before and after we enter git directories just to be safe.
1 parent 29d37bf commit 6a266c6

9 files changed

Lines changed: 60 additions & 3 deletions

File tree

scripts/install/liburing/liburing-install.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,16 @@ fi
2222

2323
#----------------------------------------------------------------------------
2424
# Start Main Script
25+
26+
# Return to /usr/src
27+
cd /usr/src
28+
2529
rm -rf /usr/src/liburing
2630
git clone --depth 1 https://github.com/axboe/liburing -b master /usr/src/liburing
2731
cd /usr/src/liburing
2832
make -j${CPU_COUNT}
2933
#make test
3034
make install
35+
36+
# Return to /usr/src
37+
cd /usr/src

scripts/install/nginx/nginx-brotli.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,20 @@ fi
2323
#----------------------------------------------------------------------------
2424
# Start Main Script
2525

26+
# Return to /usr/src
27+
cd /usr/src
2628
# Brotli
29+
30+
# Old Git Method
2731
rm -rf /usr/src/ngx_brotli
28-
git clone https://github.com/google/ngx_brotli.git -b master /usr/src/ngx_brotli
32+
git clone --recurse-submodules --remote-submodules https://github.com/google/ngx_brotli.git /usr/src/ngx_brotli
2933
cd /usr/src/ngx_brotli
3034
git submodule update --init
3135

32-
cd usr/src/ngx_brotli/deps/brotli
36+
cd /usr/src/ngx_brotli/deps/brotli
3337
mkdir out && cd out
3438
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS="-Ofast -m64 -march=native -mtune=native -flto -funroll-loops -ffunction-sections -fdata-sections -Wl,--gc-sections" -DCMAKE_CXX_FLAGS="-Ofast -m64 -march=native -mtune=native -flto -funroll-loops -ffunction-sections -fdata-sections -Wl,--gc-sections" -DCMAKE_INSTALL_PREFIX=./installed ..
3539
cmake --build . --config Release --target brotlienc
40+
41+
# Return to /usr/src
42+
cd /usr/src

scripts/install/tools/media/zimageoptimizer.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@ fi
2323
#----------------------------------------------------------------------------
2424
# Start Main Script
2525

26+
# Return to /usr/src
27+
cd /usr/src
28+
2629
# Install zImageOptimizer
2730
rm -rf /usr/local/bin/zimageoptimizer
2831
git clone --depth 1 https://github.com/zevilz/zImageOptimizer.git -b master /usr/local/bin/zimageoptimizer
2932
find /usr/local/bin/zimageoptimizer -type d,f -exec chmod 755 {} \;
33+
34+
# Return to /usr/src
35+
cd /usr/src

scripts/install/tools/php/opcache-gui.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ fi
2323
#----------------------------------------------------------------------------
2424
# Start Main Script
2525

26+
# Return to /usr/src
27+
cd /usr/src
28+
2629
# OpCache-GUI
2730
rm -rf /var/www/admin/enginescript/opcache-gui
2831
git clone --depth 1 https://github.com/amnuts/opcache-gui.git /var/www/admin/enginescript/opcache-gui
32+
33+
# Return to /usr/src
34+
cd /usr/src

scripts/install/tools/security/php-malware-finder.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ fi
2323
#----------------------------------------------------------------------------
2424
# Start Main Script
2525

26+
# Return to /usr/src
27+
cd /usr/src
28+
2629
# PHP Malware Finder
2730
rm -rf /usr/local/bin/php-malware-finder
2831
git clone https://github.com/nbs-system/php-malware-finder.git /usr/local/bin/php-malware-finder
@@ -38,3 +41,6 @@ echo ""
3841
echo ""
3942

4043
sleep 5
44+
45+
# Return to /usr/src
46+
cd /usr/src

scripts/install/tools/system/dropbox-uploader.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ fi
2222

2323
#----------------------------------------------------------------------------
2424
# Start Main Script
25+
26+
# Return to /usr/src
27+
cd /usr/src
28+
2529
clear
30+
2631
# Clone Git
2732
git clone --depth 1 https://github.com/andreafabrizi/Dropbox-Uploader.git -b master /usr/local/bin/dropbox-uploader
2833

@@ -36,3 +41,6 @@ echo "We've sent the dropbox_uploader.sh script to your Dropbox folder. If it di
3641
/usr/local/bin/dropbox-uploader/dropbox_uploader.sh -k upload /usr/local/bin/dropbox-uploader/dropbox_uploader.sh .
3742

3843
echo "Check your Dropbox"
44+
45+
# Return to /usr/src
46+
cd /usr/src

scripts/install/tools/system/phpsysinfo.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ fi
2323
#----------------------------------------------------------------------------
2424
# Start Main Script
2525

26+
# Return to /usr/src
27+
cd /usr/src
28+
2629
# phpSysinfo
2730
rm -rf /var/www/admin/enginescript/phpsysinfo
2831
git clone --depth 1 https://github.com/phpsysinfo/phpsysinfo.git /var/www/admin/enginescript/phpsysinfo
@@ -48,3 +51,6 @@ echo ""
4851
echo ""
4952

5053
sleep 5
54+
55+
# Return to /usr/src
56+
cd /usr/src

scripts/install/tools/system/testssl-install.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ fi
2323
#----------------------------------------------------------------------------
2424
# Start Main Script
2525

26+
# Return to /usr/src
27+
cd /usr/src
28+
2629
# Remove Old Version
2730
rm -rf /usr/local/bin/testssl.sh
2831

@@ -33,3 +36,6 @@ git clone https://github.com/drwetter/testssl.sh.git /usr/local/bin/testssl.sh
3336
find /usr/local/bin/testssl.sh -type d,f -exec chmod 755 {} \;
3437
chown -R root:root /usr/local/bin/testssl.sh
3538
find /usr/local/bin/testssl.sh -type f -iname "*.sh" -exec chmod +x {} \;
39+
40+
# Return to /usr/src
41+
cd /usr/src

scripts/install/zlib/zlib-install.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ fi
2323
#----------------------------------------------------------------------------
2424
# Start Main Script
2525

26-
# Cloudflare zlib Download
26+
# Return to /usr/src
2727
cd /usr/src
28+
29+
# Cloudflare zlib Download
2830
rm -rf /usr/src/zlib-cf
2931
git clone --depth 1 https://github.com/cloudflare/zlib.git -b gcc.amd64 /usr/src/zlib-cf
3032
cd /usr/src/zlib-cf
@@ -53,3 +55,6 @@ make -f Makefile.in distclean
5355
# Official zlib Download
5456
wget -O /usr/src/zlib-${ZLIB_VER}.tar.gz https://www.zlib.net/zlib-${ZLIB_VER}.tar.gz --no-check-certificate
5557
tar -xzvf /usr/src/zlib-${ZLIB_VER}.tar.gz
58+
59+
# Return to /usr/src
60+
cd /usr/src

0 commit comments

Comments
 (0)