mirror of
https://codeberg.org/scip/jaildk.git
synced 2025-12-16 20:21:05 +01:00
@@ -1286,15 +1286,14 @@ jaildk_jail() {
|
|||||||
jail=$2
|
jail=$2
|
||||||
|
|
||||||
if test "x$mode" = "xstatus"; then
|
if test "x$mode" = "xstatus"; then
|
||||||
|
if test -z "$jail" -o "$jail" = "-h"; then
|
||||||
|
bold "Running jails:"
|
||||||
|
lookup='*'
|
||||||
|
else
|
||||||
|
bold "Status of $jail:"
|
||||||
|
lookup=$jail
|
||||||
|
fi
|
||||||
(
|
(
|
||||||
if test -z "$jail" -o "$jail" = "-h"; then
|
|
||||||
bold "Running jails:"
|
|
||||||
lookup='*'
|
|
||||||
else
|
|
||||||
bold "Status $jail:"
|
|
||||||
lookup=$jail
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Jail IP-Address Path Is-Running RW-mounted Current-Version Base"
|
echo "Jail IP-Address Path Is-Running RW-mounted Current-Version Base"
|
||||||
grep -h "name=" $j/etc/$lookup/jail.conf | cut -d= -f2 | while read jail; do
|
grep -h "name=" $j/etc/$lookup/jail.conf | cut -d= -f2 | while read jail; do
|
||||||
jid=''
|
jid=''
|
||||||
@@ -1317,7 +1316,7 @@ jaildk_jail() {
|
|||||||
|
|
||||||
if jls -j $jail > /dev/null 2>&1; then
|
if jls -j $jail > /dev/null 2>&1; then
|
||||||
# jail is running, get some data about jail
|
# jail is running, get some data about jail
|
||||||
eval $(jls -j v6 -qn ip4.addr ip6.addr jid)
|
eval $(jls -j $jail -qn ip4.addr ip6.addr jid path | sed 's/\.addr/addr/g')
|
||||||
if test -n "$ip4addr"; then
|
if test -n "$ip4addr"; then
|
||||||
ip=$ip4addr
|
ip=$ip4addr
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user