New NGINXVER variable

Set NGINXVER = "current release"
This commit is contained in:
rieger::CLOUD
2018-12-28 12:01:32 +01:00
committed by GitHub
parent d4bce22137
commit 46cd41dd88

View File

@@ -3,14 +3,16 @@
# https://www.c-rieger.de # https://www.c-rieger.de
# https://github.com/riegercloud # https://github.com/riegercloud
# INSTALL-NEXTCLOUD.SH # INSTALL-NEXTCLOUD.SH
# Version 6.9 (AMD64) # Version 6.9b (AMD64)
# Nextcloud 15 # Nextcloud 15
# OpenSSL 1.1.1, TLSv1.3, NGINX 1.15.8 # OpenSSL 1.1.1, TLSv1.3, NGINX 1.15.8
# December, 27th 2018 # December, 28th 2018
################################################ ################################################
# Ubuntu 18.04 LTS AMD64 - Nextcloud 15 # Ubuntu 18.04 LTS AMD64 - Nextcloud 15
################################################ ################################################
#!/bin/bash #!/bin/bash
### Set current NGINX Releaseversion
NGINXVER="1.15.8"
###global function to update and cleanup the environment ###global function to update and cleanup the environment
function update_and_clean() { function update_and_clean() {
apt update apt update
@@ -86,12 +88,12 @@ apt install dpkg-dev -y && apt source nginx
cd /usr/local/src && apt install git -y cd /usr/local/src && apt install git -y
git clone https://github.com/openssl/openssl.git git clone https://github.com/openssl/openssl.git
cd openssl && git checkout OpenSSL_1_1_1-stable cd openssl && git checkout OpenSSL_1_1_1-stable
cp /usr/local/src/install-nextcloud/rules.nginx /usr/local/src/nginx/nginx-1.15.8/debian/rules cp /usr/local/src/install-nextcloud/rules.nginx /usr/local/src/nginx/nginx-$NGINXVER/debian/rules
sed -i "s/.*-Werror.*/# &/" /usr/local/src/nginx/nginx-1.15.8/auto/cc/gcc sed -i "s/.*-Werror.*/# &/" /usr/local/src/nginx/nginx-$NGINXVER/auto/cc/gcc
cd /usr/local/src/nginx/nginx-1.15.8/ cd /usr/local/src/nginx/nginx-$NGINXVER/
apt build-dep nginx -y && dpkg-buildpackage -b apt build-dep nginx -y && dpkg-buildpackage -b
cd /usr/local/src/nginx/ cd /usr/local/src/nginx/
dpkg -i nginx_1.15.8-*.deb dpkg -i nginx_$NGINXVER-*.deb
service nginx restart && apt-mark hold nginx service nginx restart && apt-mark hold nginx
# apt install nginx -y # apt install nginx -y
###enable NGINX autostart ###enable NGINX autostart