ariang: add nginx support and update

This adds nginx support for ariang webui and update it to latest commit.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
This commit is contained in:
Ansuel Smith
2018-06-14 20:15:15 +02:00
parent 2e030a7b81
commit aad05bff5a
3 changed files with 27 additions and 4 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
if [ -f "/etc/nginx/nginx.conf" ] && [ -f "/etc/nginx/ariang.conf" ]; then
if [ ! "$(cat '/etc/nginx/nginx.conf' | grep -q 'server_name localhost;')" ]; then
sed -i '/server_name localhost;/a \\t\tinclude ariang.conf;' /etc/nginx/nginx.conf
if [ -f /var/run/nginx.pid ]; then
/etc/init.d/nginx restart
fi
fi
fi
exit 0