source: src-sh/warden/scripts/backend/listpbis.sh @ 8da8a81

9.1-release9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1
Last change on this file since 8da8a81 was 8da8a81, checked in by Kris Moore <kris@…>, 19 months ago
  • Update Dates
  • Fix a bug boot-strapping PKGNG into jails
  • Add warning if we fail to copy PKGNG cert file
  • Property mode set to 100755
File size: 685 bytes
Line 
1#!/bin/sh
2# List pbi's in a jail
3######################################################################
4
5# Source our functions
6PROGDIR="/usr/local/share/warden"
7
8# Source our variables
9. ${PROGDIR}/scripts/backend/functions.sh
10
11JAILNAME="$1"
12
13if [ -z "${JAILNAME}" ]
14then
15  echo "ERROR: No jail specified to view packages in!"
16  exit 5
17fi
18
19if [ -z "${JDIR}" ]
20then
21  echo "ERROR: JDIR is unset!!!!"
22  exit 5
23fi
24
25JAILDIR="${JDIR}/${JAILNAME}"
26
27if [ ! -d "${JAILDIR}" ]
28then
29  echo "ERROR: No jail located at ${JAILDIR}"
30  exit 5
31fi
32
33# Done with error checking, now lets get a pbi listing
34###################################################################
35chroot "${JAILDIR}" pbi_info
Note: See TracBrowser for help on using the repository browser.