From 31eac03212dcbcae40078c23597ae670b959227c Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 21 Jun 2010 22:23:22 +0000 Subject: [PATCH] zabbix: don't chown on host system (#7497) SVN-Revision: 21865 --- admin/zabbix/Makefile | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/admin/zabbix/Makefile b/admin/zabbix/Makefile index 41f23a871..378922ba7 100644 --- 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 -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 -- 2.30.2