Changeset 3c28602


Ignore:
Timestamp:
Apr 15, 2013 9:24:03 AM (12 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.1-release, 9.2-release, releng/10.0, releng/10.0.1
Children:
365dfc2
Parents:
22842a8
Message:
  • Improve PKGNG usage when checking for updates to jails
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/warden/scripts/backend/checkupdates.sh

    r22842a8 r3c28602  
    4949    echo "################################################" 
    5050  
    51     # Check for meta-pkg updates 
    52     pc-metapkgmanager --chroot ${JDIR}/${JAILNAME} checkup 
     51    # Check for pkgng updates 
     52    if [ -e "${JDIR}/${JAILNAME}/usr/local/sbin/pkg-static" ] ; then 
     53       chroot "${JDIR}/${JAILNAME}" pkg upgrade -n 
     54    fi 
    5355 
    5456    # Check for system-updates 
     
    6567   echo "Checking for jail updates to ${JAILNAME}..." 
    6668   echo "################################################" 
    67    # Check for meta-pkg updates 
    68    pc-metapkgmanager --chroot ${JDIR}/${JAILNAME} checkup 
     69 
     70   # Check for pkgng updates 
     71   if [ -e "${JDIR}/${JAILNAME}/usr/local/sbin/pkg-static" ] ; then 
     72      chroot "${JDIR}/${JAILNAME}" pkg upgrade -n 
     73   fi 
    6974 
    7075   # Check for system-updates 
Note: See TracChangeset for help on using the changeset viewer.