Skip to content

Commit 0d36a08

Browse files
committed
Fix makefile
1 parent 5a01d44 commit 0d36a08

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ NGINX_V := 1.26.2
44
LIBRE_V := 4.0.0
55
PASSENGER_V := 6.0.26
66
ROOT_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
7-
HOST_OS := $(shell if [ -f /etc/lsb-release ]; then echo debian; elif [ -f /etc/redhat-release ]; then echo fedora; else echo unknown; fi)
87
LINK_OS := $(shell if [ -f /etc/lsb-release ]; then echo ubuntu; elif [ -f /etc/redhat-release ]; then echo rocky; else echo unknown; fi)
98
LINK_ARCH := $(shell uname -m | sed -e 's/x86_64/amd64/' -e 's/aarch64/arm64/')
109

@@ -18,10 +17,10 @@ NGINX_DEBIAN_CONFIG := --sbin-path=/usr/local/sbin/nginx --modules-path=/usr/loc
1817
NGINX_TMP_FEDORA_DIRS := /var/lib/nginx/tmp/{client_body,fastcgi,proxy,scgi,uwsgi}
1918
NGINX_TMP_DEBIAN_DIRS := /var/lib/nginx/{body,fastcgi,proxy,scgi,uwsgi}
2019

21-
ifeq ($(HOST_OS),fedora)
20+
ifeq ($(LINK_OS),ubuntu)
2221
NGINX_CONFIG := $(NGINX_FEDORA_CONFIG)
2322
NGINX_TMP_DIRS := $(NGINX_TMP_FEDORA_DIRS)
24-
else ifeq ($(HOST_OS),debian)
23+
else ifeq ($(LINK_OS),rocky)
2524
NGINX_CONFIG := $(NGINX_DEBIAN_CONFIG)
2625
NGINX_TMP_DIRS := $(NGINX_TMP_DEBIAN_DIRS)
2726
else

0 commit comments

Comments
 (0)