[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
|
cp /rom/etc/passwd /etc/passwd
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
if [ -z "$$(grep ^\\$${name}: $${IPKG_INSTROOT}/etc/group)" ]; then
|
if [ -z "$$(grep ^\\$${name}: $${IPKG_INSTROOT}/etc/group)" ]; then
|
||||||
echo "adding group $$name to /etc/group"
|
echo "adding group $$name to /etc/group"
|
||||||
echo "$${name}:x:$${id}:" >> $${IPKG_INSTROOT}/etc/group
|
echo "$${name}:x:$${id}:" >> $${IPKG_INSTROOT}/etc/group
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$$(grep ^\\$${name}: $${IPKG_INSTROOT}/etc/passwd)" ]; then
|
if [ -z "$$(grep ^\\$${name}: $${IPKG_INSTROOT}/etc/passwd)" ]; then
|
||||||
echo "adding user $$name to /etc/passwd"
|
echo "adding user $$name to /etc/passwd"
|
||||||
echo "$${name}:x:$${id}:$${id}:$${name}:/tmp/.$${name}:/bin/false" >> $${IPKG_INSTROOT}/etc/passwd
|
echo "$${name}:x:$${id}:$${id}:$${name}:/tmp/.$${name}:/bin/false" >> $${IPKG_INSTROOT}/etc/passwd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chown $${name} $${IPKG_INSTROOT}/etc/zabbix/zabbix_agentd.conf
|
chown $${name} $${IPKG_INSTROOT}/etc/zabbix/zabbix_agentd.conf
|
||||||
|
fi
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user