Skip to content

Commit 1252ade

Browse files
authored
Tar commands part 2
Standardized all tar extraction commands
1 parent 5e5362a commit 1252ade

8 files changed

Lines changed: 9 additions & 8 deletions

File tree

scripts/install/liburing/liburing-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ cd /usr/src
2727

2828
# Official liburing Download
2929
wget -O "/usr/src/liburing-${LIBURING_VER}.tar.gz" "https://github.com/axboe/liburing/archive/refs/tags/liburing-${LIBURING_VER}.tar.gz" --no-check-certificate
30-
tar -xzvf "/usr/src/liburing-${LIBURING_VER}.tar.gz"
30+
tar -xzf "/usr/src/liburing-${LIBURING_VER}.tar.gz"
3131
cd "/usr/src/liburing-liburing-${LIBURING_VER}"
3232

3333
# Compile liburing

scripts/install/nginx/nginx-download.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fi
3131

3232
# Download and extract Nginx
3333
wget "https://nginx.org/download/nginx-${NGINX_VER}.tar.gz" -O "/usr/src/nginx-${NGINX_VER}.tar.gz" --no-check-certificate || { echo "Error: Failed to download Nginx."; exit 1; }
34-
tar -xzvf "/usr/src/nginx-${NGINX_VER}.tar.gz" || { echo "Error: Failed to extract Nginx."; exit 1; }
34+
tar -xzf "/usr/src/nginx-${NGINX_VER}.tar.gz" || { echo "Error: Failed to extract Nginx."; exit 1; }
3535

3636
# Download and extract Headers More module
3737
wget "https://github.com/openresty/headers-more-nginx-module/archive/v${NGINX_HEADER_VER}.tar.gz" -O "/usr/src/v${NGINX_HEADER_VER}.tar.gz" --no-check-certificate || { echo "Error: Failed to download Headers More module."; exit 1; }

scripts/install/openssl/openssl-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ cd /usr/src
2727
# Updated URL structure for GitHub releases
2828
wget "https://github.com/openssl/openssl/releases/download/openssl-${OPENSSL_VER}/openssl-${OPENSSL_VER}.tar.gz" --no-check-certificate
2929
#apt remove openssl -y
30-
tar -xvzf "openssl-${OPENSSL_VER}.tar.gz"
30+
tar -xzf "openssl-${OPENSSL_VER}.tar.gz"
3131

3232
# Compile OpenSSL
3333
#cd openssl-${OPENSSL_VER}

scripts/install/pcre/pcre-install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ fi
2424

2525
# PCRE
2626
cd /usr/src
27-
wget "https://github.com/PCRE2Project/pcre2/releases/download/pcre2-${PCRE2_VER}/pcre2-${PCRE2_VER}.tar.gz" --no-check-certificate && tar -xzvf "pcre2-${PCRE2_VER}.tar.gz"
27+
wget "https://github.com/PCRE2Project/pcre2/releases/download/pcre2-${PCRE2_VER}/pcre2-${PCRE2_VER}.tar.gz" --no-check-certificate
28+
tar -xzf "pcre2-${PCRE2_VER}.tar.gz"

scripts/install/tools/media/pngout.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ cd /usr/src
2929

3030
# Retrieve Latest Version
3131
wget -O "/usr/src/pngout-${PNGOUT_VER}-linux.tar.gz" "https://static.jonof.id.au/files/kenutils/pngout-${PNGOUT_VER}-linux.tar.gz" --no-check-certificate
32-
tar -xf "/usr/src/pngout-${PNGOUT_VER}-linux.tar.gz"
32+
tar -xzf "/usr/src/pngout-${PNGOUT_VER}-linux.tar.gz"
3333

3434
# Install 32-BIT or 64-BIT
3535
if [ "${BIT_TYPE}" == 'x86_64' ];

scripts/install/tools/security/maldet.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fi
2525
# Maldet Install
2626
cd /usr/local/src
2727
wget https://www.rfxn.com/downloads/maldetect-current.tar.gz --no-check-certificate
28-
tar -xvf maldetect-current.tar.gz
28+
tar -xzf maldetect-current.tar.gz
2929
cd maldetect-1.6.4/
3030
./install.sh
3131
echo "/sys" >> /usr/local/maldetect/ignore_paths

scripts/install/zlib/zlib-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ make -f Makefile.in distclean
5858

5959
# Official zlib Download
6060
wget -O "/usr/src/zlib-${ZLIB_VER}.tar.gz" "https://www.zlib.net/zlib-${ZLIB_VER}.tar.gz" --no-check-certificate
61-
tar -xzvf "/usr/src/zlib-${ZLIB_VER}.tar.gz"
61+
tar -xzf "/usr/src/zlib-${ZLIB_VER}.tar.gz"
6262

6363
# Return to /usr/src
6464
cd /usr/src

scripts/update/openssl-update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fi
2626
cd /usr/src
2727
# Updated URL structure for GitHub releases
2828
wget "https://github.com/openssl/openssl/releases/download/openssl-${OPENSSL_VER}/openssl-${OPENSSL_VER}.tar.gz" --no-check-certificate
29-
tar -xvzf "openssl-${OPENSSL_VER}.tar.gz"
29+
tar -xzf "openssl-${OPENSSL_VER}.tar.gz"
3030
cd "openssl-${OPENSSL_VER}"
3131

3232
# Compile OpenSSL

0 commit comments

Comments
 (0)