mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user