diff options
-rwxr-xr-x | ezjail-admin | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ezjail-admin b/ezjail-admin index 3e665f4..5e30c9f 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
@@ -71,7 +71,8 @@ fetchjailinfo () { | |||
71 | eval ezjail_ip=\"\$jail_${ezjail_safename}_ip\" | 71 | eval ezjail_ip=\"\$jail_${ezjail_safename}_ip\" |
72 | 72 | ||
73 | ezjail_softlink=${ezjail_jaildir}/`basename -- ${ezjail_rootdir}` | 73 | ezjail_softlink=${ezjail_jaildir}/`basename -- ${ezjail_rootdir}` |
74 | ezjail_id=`jls | grep " ${ezjail_hostname} " | head -n 1 | awk '{print $1}'` | 74 | [ -f /var/run/jail_${ezjail_safename}.id ] && ezjail_id=`cat /var/run/jail_${ezjail_safename}.id` || return |
75 | jls | grep -q -E "^ +${ezjail_id} " || unset ezjail_id | ||
75 | } | 76 | } |
76 | 77 | ||
77 | # fill the base jail - this function is used by install and update | 78 | # fill the base jail - this function is used by install and update |