Skip to content

Commit 4e89447

Browse files
committed
Take headless as script argument
1 parent da89d6c commit 4e89447

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nginx-autoinstall.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ if [[ $EUID -ne 0 ]]; then
66
exit 1
77
fi
88

9+
# Take headless as script argument
10+
if [[ $1 == "headless" ]]; then
11+
HEADLESS=y
12+
fi
13+
914
# Define versions
1015
NGINX_MAINLINE_VER=${NGINX_MAINLINE_VER:-1.21.6}
1116
NGINX_STABLE_VER=${NGINX_STABLE_VER:-1.22.0}

0 commit comments

Comments
 (0)