mirror of
https://codeberg.org/scip/jaildk.git
synced 2025-12-17 04:31:02 +01:00
version
This commit is contained in:
8
jaildk
8
jaildk
@@ -102,7 +102,7 @@ load-jail-config() {
|
|||||||
die_if_not_exist() {
|
die_if_not_exist() {
|
||||||
jail=$1
|
jail=$1
|
||||||
which=$2
|
which=$2
|
||||||
VERSION=$3
|
jailversion=$3
|
||||||
|
|
||||||
if test -z "$which"; then
|
if test -z "$which"; then
|
||||||
which="Jail"
|
which="Jail"
|
||||||
@@ -112,9 +112,9 @@ die_if_not_exist() {
|
|||||||
die "$which $jail doesn't exist!"
|
die "$which $jail doesn't exist!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -n "$VERSION"; then
|
if test -n "$jailversion"; then
|
||||||
if ! test -d $j/etc/$jail/etc-$VERSION; then
|
if ! test -d $j/etc/$jail/etc-$jailversion; then
|
||||||
die "$which $jail $version doesn't exist!"
|
die "$which $jail $jailversion doesn't exist!"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user