diff options
-rwxr-xr-x | ezjail-admin | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ezjail-admin b/ezjail-admin index cb871b9..e4646e8 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
@@ -915,7 +915,10 @@ setup|update) | |||
915 | ezjail_osversion_target="`uname -r`" | 915 | ezjail_osversion_target="`uname -r`" |
916 | 916 | ||
917 | # Finally run freebsd-update to upgrade our basejail | 917 | # Finally run freebsd-update to upgrade our basejail |
918 | env UNAME_r="${ezjail_osversion_source}" freebsd-update -b ${ezjail_jailbase} -r ${ezjail_osversion_target} upgrade install | 918 | env UNAME_r="${ezjail_osversion_source}" freebsd-update -b ${ezjail_jailbase} -r ${ezjail_osversion_target} upgrade |
919 | while [ $? -eq 0 ]; do | ||
920 | env UNAME_r="${ezjail_osversion_source}" freebsd-update -b ${ezjail_jailbase} -r ${ezjail_osversion_target} install | ||
921 | done | ||
919 | 922 | ||
920 | # Here we should write the file with the new osversion in case of success | 923 | # Here we should write the file with the new osversion in case of success |
921 | else | 924 | else |