add nginx repo
This commit is contained in:
parent
ad2904619d
commit
2eaa45bff3
1 changed files with 12 additions and 0 deletions
|
@ -6,6 +6,18 @@ if [ "$EUID" -ne 0 ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# Add NGINX repository
|
||||
echo "Adding NGINX repository..."
|
||||
curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor \
|
||||
| sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null
|
||||
|
||||
echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] \
|
||||
http://nginx.org/packages/ubuntu $(lsb_release -cs) nginx" \
|
||||
| sudo tee /etc/apt/sources.list.d/nginx.list
|
||||
|
||||
# Update package lists
|
||||
apt-get update
|
||||
|
||||
# Install requirements
|
||||
echo "Installing required packages..."
|
||||
apt-get install -y nginx-extras nginx-module-njs
|
||||
|
|
Loading…
Reference in a new issue