Changeset 40e8efb


Ignore:
Timestamp:
10/29/13 12:53:02 (10 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
287fef9
Parents:
1691c6a
Message:

When doing PKGNG PBI builds on 10, we can grab USERS/GROUPS data
from 'pkg query'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pbi-manager10/pbi-manager

    rf233898 r40e8efb  
    75367536        pkg info -e ${_lPortRaw} 
    75377537        if [ $? -ne 0 ] ; then exit_err "Failed to install $_lPortRaw" ; fi 
     7538 
     7539        # Save any users / groups we need to create later 
     7540        local pUsers="`pkg query "%U" $_lPortRaw`" 
     7541        local pGroups="`pkg query "%G" $_lPortRaw`" 
     7542        if [ -n "$pUsers" ] ; then 
     7543                PBI_BUILD_USERS="$PBI_BUILD_USERS $pUsers" 
     7544        fi 
     7545        if [ -n "$pGroups" ] ; then 
     7546                PBI_BUILD_GROUPS="$PBI_BUILD_GROUPS $pGroups" 
     7547        fi 
     7548 
    75387549        return 0 
    75397550  fi 
    75407551 
    75417552  # Lets do old-fashioned build 
    7542  
    7543   # KPM! ##############  
    7544   # We will need to revisit this portion later, see if we can 
    7545   # grab the user / group list from pkgng installed packages 
    75467553 
    75477554  # Save any users / groups we need to create later 
Note: See TracChangeset for help on using the changeset viewer.