From 5241d606149392c9cd835f0e909cbbcca2395a0f Mon Sep 17 00:00:00 2001 From: Peter Stadler Date: Tue, 4 Feb 2020 13:14:15 +0100 Subject: ariang: use new configuration of Nginx Remove the superfluous parts of the uci-defaults file. Signed-off-by: Peter Stadler --- net/ariang/files/80_ariang-nginx-support | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'net/ariang/files') diff --git a/net/ariang/files/80_ariang-nginx-support b/net/ariang/files/80_ariang-nginx-support index f3eea690f..0a89ccd1b 100644 --- a/net/ariang/files/80_ariang-nginx-support +++ b/net/ariang/files/80_ariang-nginx-support @@ -1,17 +1,5 @@ #!/bin/sh - -if [ -f "/etc/nginx/nginx.conf" ] && [ -f "/etc/nginx/conf.d/ariang.locations" ]; -then - if [ "$( grep 'server_name localhost;' < /etc/nginx/nginx.conf)" ] && - [ ! "$( grep 'include conf.d/ariang.locations;' < /etc/nginx/nginx.conf)" ]; then - sed -i '/server_name localhost;/\ - a\\tinclude conf.d/ariang.locations;' /etc/nginx/nginx.conf - if [ -f /var/run/nginx.pid ]; then - /etc/init.d/nginx restart - fi - fi -fi +[ -x /etc/init.d/nginx ] && /etc/init.d/nginx running && /etc/init.d/nginx reload exit 0 - -- cgit v1.2.3