projects
/
openwrt
/
svn-archive
/
archive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
095b295
)
[packages] zabbix: don't chown on host system (#7497)
author
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 21 Jun 2010 22:23:22 +0000
(22:23 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 21 Jun 2010 22:23:22 +0000
(22:23 +0000)
SVN-Revision: 21865
admin/zabbix/Makefile
patch
|
blob
|
history
diff --git
a/admin/zabbix/Makefile
b/admin/zabbix/Makefile
index 41f23a8713821a3cf5988d903e2c77a94a0529c0..378922ba7c4fc305d20c67631f330ffdbfd60ba1 100644
(file)
--- a/
admin/zabbix/Makefile
+++ b/
admin/zabbix/Makefile
@@
-102,20
+102,20
@@
if [ -z "$${IPKG_INSTROOT}" ]; then
cp /rom/etc/passwd /etc/passwd
fi
fi
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
endef