mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 06:58:39 +01:00
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:
@@ -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
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user