generic userid: use the new USERID api

recent changes in trunk allow us to specify the userid inside the openwrt makefile.
the info is stored int he meta data of the IPK contorl file and users are generated
by the new generic postinst trigger.

Signed-off-by: John Crispin <blogic@openwrt.org>
This commit is contained in:
John Crispin
2014-10-08 03:45:30 +02:00
parent 85695f4561
commit d4042ec35e
22 changed files with 11 additions and 23 deletions
+1
View File
@@ -32,6 +32,7 @@ define Package/zabbix/Default
URL:=http://www.zabbix.com/
SUBMENU:=zabbix
MAINTAINER:=Etienne CHAMPETIER <champetier.etienne@gmail.com>
USERID:=zabbix=53:zabbix=53
endef
define Package/zabbix-agent
-2
View File
@@ -19,8 +19,6 @@ start() {
}
grep -q "^AllowRoot=1" ${CONFIG} || {
user_exists zabbix 53 || user_add zabbix 53
group_exists zabbix 53 || group_add zabbix 53
touch ${SERVICE_PID_FILE}
chown zabbix:zabbix ${SERVICE_PID_FILE}
}