added element for nginx-plus
Change-Id: I42588a5212038d45517c07492201ae5389b8d3df
This commit is contained in:
parent
92cf4d83eb
commit
caac0c478f
3
diskimage-builder/elements/nginx-plus/README.md
Normal file
3
diskimage-builder/elements/nginx-plus/README.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Before using this element copy your nginx-repo.key and nginx-repo.crt into ./bin
|
||||||
|
|
||||||
|
|
2
diskimage-builder/elements/nginx-plus/element-deps
Normal file
2
diskimage-builder/elements/nginx-plus/element-deps
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
cloud-init-datasources
|
||||||
|
source-repositories
|
@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# this is an install script for nginx plus
|
||||||
|
|
||||||
|
# make nginx ssl dir
|
||||||
|
mkdir /etc/ssl/nginx
|
||||||
|
cp $(dirname $0)/../bin/* /etc/ssl/nginx/
|
||||||
|
|
||||||
|
wget https://cs.nginx.com/static/files/CA.crt -P /etc/ssl/nginx/
|
||||||
|
wget http://nginx.org/keys/nginx_signing.key -P /etc/ssl/nginx/
|
||||||
|
|
||||||
|
apt-key add nginx_signing.key
|
||||||
|
|
||||||
|
printf "deb https://plus-pkgs.nginx.com/debian `lsb_release -cs` nginx-plus\n" >/etc/apt/sources.list.d/nginx-plus.list
|
||||||
|
|
||||||
|
wget https://cs.nginx.com/static/files/90nginx -P /etc/apt/apt.conf.d
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
|
||||||
|
apt-get install nginx-plus -y
|
Loading…
Reference in New Issue
Block a user