Changeset 21865


Ignore:
Timestamp:
2010-06-22T00:23:22+02:00 (8 years ago)
Author:
jow
Message:

[packages] zabbix: don't chown on host system (#7497)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/admin/zabbix/Makefile

    r19869 r21865  
    103103                fi 
    104104        fi 
     105 
     106        echo "" 
     107        if [ -z "$$(grep ^\\$${name}: $${IPKG_INSTROOT}/etc/group)" ]; then 
     108                echo "adding group $$name to /etc/group" 
     109                echo "$${name}:x:$${id}:" >> $${IPKG_INSTROOT}/etc/group 
     110        fi 
     111 
     112        if [ -z "$$(grep ^\\$${name}: $${IPKG_INSTROOT}/etc/passwd)" ]; then 
     113                echo "adding user $$name to /etc/passwd" 
     114                echo "$${name}:x:$${id}:$${id}:$${name}:/tmp/.$${name}:/bin/false" >> $${IPKG_INSTROOT}/etc/passwd 
     115        fi 
     116 
     117        chown $${name} $${IPKG_INSTROOT}/etc/zabbix/zabbix_agentd.conf 
    105118fi 
    106  
    107 echo "" 
    108 if [ -z "$$(grep ^\\$${name}: $${IPKG_INSTROOT}/etc/group)" ]; then 
    109         echo "adding group $$name to /etc/group" 
    110         echo "$${name}:x:$${id}:" >> $${IPKG_INSTROOT}/etc/group 
    111 fi 
    112  
    113 if [ -z "$$(grep ^\\$${name}: $${IPKG_INSTROOT}/etc/passwd)" ]; then 
    114         echo "adding user $$name to /etc/passwd" 
    115         echo "$${name}:x:$${id}:$${id}:$${name}:/tmp/.$${name}:/bin/false" >> $${IPKG_INSTROOT}/etc/passwd 
    116 fi 
    117  
    118 chown $${name} $${IPKG_INSTROOT}/etc/zabbix/zabbix_agentd.conf 
    119119 
    120120endef 
Note: See TracChangeset for help on using the changeset viewer.