if [ ! -d "${DEFAULT_BUILD_SRC_DIR}" ]; then mkdir"${DEFAULT_BUILD_SRC_DIR}" fi
if [ -f "${NGINX_GZ}" ]; then sha256sum_results=$(sha256sum$NGINX_GZ) sha256sum_results=${sha256sum_results^^} if [[ $sha256sum_results =~ "${NGINX_GZ_SHA256}" ]]; then NGINX_GZ_DOWN_LOAD=0 NGINX_GZ_OK=1 else NGINX_GZ_DOWN_LOAD=1 fi unset sha256sum_results else NGINX_GZ_DOWN_LOAD=1 fi
if [ $NGINX_GZ_DOWN_LOAD -eq 1 ]; then # Download Nginx 1.18.0 wget -O $NGINX_GZ http://nginx.org/download/nginx-1.18.0.tar.gz if [ -f "${NGINX_GZ}" ]; then sha256sum_results=$(sha256sum$NGINX_GZ) sha256sum_results=${sha256sum_results^^} if [[ $sha256sum_results =~ "${NGINX_GZ_SHA256}" ]]; then NGINX_GZ_OK=1 fi unset sha256sum_results fi fi unset NGINX_GZ_DOWN_LOAD
if [ -d "${NGINX_SRC}" ]; then rm -rf "${NGINX_SRC}" fi