Browse Source

Merge pull request #11238 from peter-stadler/ariang

ariang: use new configuration of Nginx
lilik-openwrt-22.03
Rosen Penev 5 years ago
committed by GitHub
parent
commit
3481dcdc85
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 14 deletions
  1. +1
    -1
      net/ariang/Makefile
  2. +1
    -13
      net/ariang/files/80_ariang-nginx-support

+ 1
- 1
net/ariang/Makefile View File

@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=ariang
PKG_VERSION:=1.1.4
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE_URL:=https://codeload.github.com/mayswind/AriaNg-DailyBuild/tar.gz/$(PKG_VERSION)?
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz


+ 1
- 13
net/ariang/files/80_ariang-nginx-support 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

Loading…
Cancel
Save