mirror of
https://codeberg.org/scip/jaildk.git
synced 2025-12-17 04:31:02 +01:00
fix #37: match jail name to id correctly
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
version=2.0.4
|
version=2.0.5
|
||||||
|
|
||||||
# this will be completed during build. Don't touch it, just execute
|
# this will be completed during build. Don't touch it, just execute
|
||||||
# make and use the resulting script!
|
# make and use the resulting script!
|
||||||
@@ -1532,7 +1532,7 @@ jaildk_login() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
jid=""
|
jid=""
|
||||||
jid=`jls | grep "$jail" | awk '{print $1}'`
|
jid=$(jls -j "$jail" jid)
|
||||||
|
|
||||||
if test -z "$jid"; then
|
if test -z "$jid"; then
|
||||||
echo "jail $jail doesn't run!"
|
echo "jail $jail doesn't run!"
|
||||||
|
|||||||
Reference in New Issue
Block a user