This commit is contained in:
Thomas von Dein
2020-12-13 14:49:39 +01:00
parent 25d207daf7
commit 6bcdb1ac20

8
jaildk
View File

@@ -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
} }