Check-in [ef0a438854]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:jail -l: Display PATH. Also cleanup local vars.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: ef0a43885486e8e1b1d7b2bd9703ab8221a06b40
User & Date: bdrewery 2013-05-27 12:27:09
Original User & Date: root 2013-05-27 12:27:09
Context
2013-05-27
12:40
jail usage: Split -p and -z out of the main usage listing check-in: 6a8afd9007 user: bdrewery tags: trunk
12:27
jail -l: Display PATH. Also cleanup local vars. check-in: ef0a438854 user: bdrewery tags: trunk
2013-05-26
18:44
svn: Default to svn0.us-west mirror as svn. uses bad hacks to talk to the mirror check-in: 28cf93e725 user: bdrewery tags: trunk
Changes

Changes to src/share/poudriere/jail.sh.

60
61
62
63
64
65
66




67
68
69
70
71
72
73

74
75
76
77
78
79
80
81
    -t version    -- version to upgrade to
    -z set        -- Specify which SET the jail to start/stop with
"
	exit 1
}

list_jail() {




	[ ${QUIET} -eq 0 ] &&
		printf '%-20s %-20s %-7s %-7s\n' "JAILNAME" "VERSION" "ARCH" "METHOD"
	for j in $(find ${POUDRIERED}/jails -type d -maxdepth 1 -mindepth 1 -print); do
		name=${j##*/}
		version=$(jget ${name} version)
		arch=$(jget ${name} arch)
		method=$(jget ${name} method)

		printf '%-20s %-20s %-7s %-7s\n' "${name}" "${version}" "${arch}" "${method}"
	done
}

delete_jail() {
	test -z ${JAILNAME} && usage
	jail_exists ${JAILNAME} || err 1 "No such jail: ${JAILNAME}"
	jail_runs ${JAILNAME} &&







>
>
>
>

|





>
|







60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
    -t version    -- version to upgrade to
    -z set        -- Specify which SET the jail to start/stop with
"
	exit 1
}

list_jail() {
	local format
	local j name version arch method mnt

	format='%-20s %-20s %-7s %-7s %s\n'
	[ ${QUIET} -eq 0 ] &&
		printf "${format}" "JAILNAME" "VERSION" "ARCH" "METHOD" "PATH"
	for j in $(find ${POUDRIERED}/jails -type d -maxdepth 1 -mindepth 1 -print); do
		name=${j##*/}
		version=$(jget ${name} version)
		arch=$(jget ${name} arch)
		method=$(jget ${name} method)
		mnt=$(jget ${name} mnt)
		printf "${format}" "${name}" "${version}" "${arch}" "${method}" "${mnt}"
	done
}

delete_jail() {
	test -z ${JAILNAME} && usage
	jail_exists ${JAILNAME} || err 1 "No such jail: ${JAILNAME}"
	jail_runs ${JAILNAME} &&