mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-19 15:34:16 +00:00
update nginx install script
This commit is contained in:
parent
dbf51b6499
commit
102e3b9684
@ -8,20 +8,12 @@ for arg in "$@"; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
NGINX_VERSION="1.26.3"
|
NGINX_VERSION="1.26.3"
|
||||||
ARCH="$(dpkg --print-architecture)"
|
ARCH="$(uname -m)"
|
||||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
OUTPUTBIN="${SCRIPT_DIR}/../nginx-bin"
|
OUTPUTBIN="${SCRIPT_DIR}/../nginx-bin"
|
||||||
|
|
||||||
if [ "$ARCH" = "arm64" ]; then
|
|
||||||
NGINX_ARCH="aarch64";
|
|
||||||
elif [ "$ARCH" = "amd64" ]; then
|
|
||||||
NGINX_ARCH="x86_64";
|
|
||||||
else
|
|
||||||
echo "Unsupported architecture: $ARCH";
|
|
||||||
exit 1;
|
|
||||||
fi
|
|
||||||
|
|
||||||
NGINX_BINARY_URL="https://jirutka.github.io/nginx-binaries/nginx-${NGINX_VERSION}-${NGINX_ARCH}-linux"
|
NGINX_BINARY_URL="https://jirutka.github.io/nginx-binaries/nginx-${NGINX_VERSION}-${ARCH}-linux"
|
||||||
|
|
||||||
if [ -f "${OUTPUTBIN}" ]; then
|
if [ -f "${OUTPUTBIN}" ]; then
|
||||||
if [ "$FORCE_OVERWRITE" = true ]; then
|
if [ "$FORCE_OVERWRITE" = true ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user