Skip to content

Commit 1496237

Browse files
committed
Install curl if not installed
- Install curl if not installed
1 parent 53b953f commit 1496237

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nginx-autoinstall.sh

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

9+
# Install curl if not installed
10+
if ! [[ $(command -v 'curl') ]]; then
11+
apt-get install curl
12+
fi
913
# Get latest version from nginx.org
1014
curl_request() {
1115
curl -s https://nginx.org/en/download.html |

0 commit comments

Comments
 (0)