gluon-mesh-vpn-core: use OpenWrt's user/group management
This commit is contained in:
parent
218de7e0ae
commit
6ae1af9694
@ -12,6 +12,7 @@ define Package/gluon-mesh-vpn-core
|
|||||||
CATEGORY:=Gluon
|
CATEGORY:=Gluon
|
||||||
TITLE:=Basic support for connecting meshes via VPN tunnels
|
TITLE:=Basic support for connecting meshes via VPN tunnels
|
||||||
DEPENDS:=+gluon-core +gluon-wan-dnsmasq +iptables +iptables-mod-extra +simple-tc
|
DEPENDS:=+gluon-core +gluon-wan-dnsmasq +iptables +iptables-mod-extra +simple-tc
|
||||||
|
USERID:=:gluon-mesh-vpn=800
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Prepare
|
define Build/Prepare
|
||||||
|
@ -39,8 +39,6 @@ end
|
|||||||
users.remove_user('gluon-fastd')
|
users.remove_user('gluon-fastd')
|
||||||
users.remove_group('gluon-fastd')
|
users.remove_group('gluon-fastd')
|
||||||
|
|
||||||
users.add_group('gluon-mesh-vpn', 800)
|
|
||||||
|
|
||||||
uci:section('firewall', 'include', 'mesh_vpn_dns', {
|
uci:section('firewall', 'include', 'mesh_vpn_dns', {
|
||||||
type = 'restore',
|
type = 'restore',
|
||||||
path = '/lib/gluon/mesh-vpn/iptables.rules',
|
path = '/lib/gluon/mesh-vpn/iptables.rules',
|
||||||
|
Loading…
Reference in New Issue
Block a user