[packages] zabbix: don't chown on host system (#7497)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@21865 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
f628ac7c1e
commit
a6738aeee0
@ -102,20 +102,20 @@ if [ -z "$${IPKG_INSTROOT}" ]; then
|
||||
cp /rom/etc/passwd /etc/passwd
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
echo ""
|
||||
if [ -z "$$(grep ^\\$${name}: $${IPKG_INSTROOT}/etc/group)" ]; then
|
||||
echo "adding group $$name to /etc/group"
|
||||
echo "$${name}:x:$${id}:" >> $${IPKG_INSTROOT}/etc/group
|
||||
fi
|
||||
echo ""
|
||||
if [ -z "$$(grep ^\\$${name}: $${IPKG_INSTROOT}/etc/group)" ]; then
|
||||
echo "adding group $$name to /etc/group"
|
||||
echo "$${name}:x:$${id}:" >> $${IPKG_INSTROOT}/etc/group
|
||||
fi
|
||||
|
||||
if [ -z "$$(grep ^\\$${name}: $${IPKG_INSTROOT}/etc/passwd)" ]; then
|
||||
echo "adding user $$name to /etc/passwd"
|
||||
echo "$${name}:x:$${id}:$${id}:$${name}:/tmp/.$${name}:/bin/false" >> $${IPKG_INSTROOT}/etc/passwd
|
||||
fi
|
||||
if [ -z "$$(grep ^\\$${name}: $${IPKG_INSTROOT}/etc/passwd)" ]; then
|
||||
echo "adding user $$name to /etc/passwd"
|
||||
echo "$${name}:x:$${id}:$${id}:$${name}:/tmp/.$${name}:/bin/false" >> $${IPKG_INSTROOT}/etc/passwd
|
||||
fi
|
||||
|
||||
chown $${name} $${IPKG_INSTROOT}/etc/zabbix/zabbix_agentd.conf
|
||||
chown $${name} $${IPKG_INSTROOT}/etc/zabbix/zabbix_agentd.conf
|
||||
fi
|
||||
|
||||
endef
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user