ariang: use new configuration of Nginx

Remove the superfluous parts of the uci-defaults file.

Signed-off-by: Peter Stadler <peter.stadler@student.uibk.ac.at>
This commit is contained in:
Peter Stadler
2020-02-04 13:14:15 +01:00
parent 6e6e076eef
commit 5241d60614
2 changed files with 2 additions and 14 deletions
+1 -13
View File
@@ -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