diff options
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-x | ezjail-admin | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/ezjail-admin b/ezjail-admin index f8bb9a7..449a6e6 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
@@ -41,7 +41,7 @@ ezjail_basesystem="base" | |||
41 | case `uname -p` in amd64) ezjail_dirlist="${ezjail_dirlist} usr/lib32"; ezjail_basesystem="${ezjail_basesystem} lib32";; esac | 41 | case `uname -p` in amd64) ezjail_dirlist="${ezjail_dirlist} usr/lib32"; ezjail_basesystem="${ezjail_basesystem} lib32";; esac |
42 | 42 | ||
43 | # Synopsis messages | 43 | # Synopsis messages |
44 | ezjail_usage_ezjailadmin="${ezjail_admin} v3.3\nUsage: ${ezjail_admin} [archive|config|console|create|delete|install|list|restore|snapshot|update] {params}" | 44 | ezjail_usage_ezjailadmin="${ezjail_admin} v3.3\nUsage: ${ezjail_admin} [archive|config|console|create|delete|install|list|restore|snapshot|troubleshoot|update] {params}" |
45 | ezjail_usage_install="Usage: ${ezjail_admin} install [-mMpPsS] [-h host] [-r release]" | 45 | ezjail_usage_install="Usage: ${ezjail_admin} install [-mMpPsS] [-h host] [-r release]" |
46 | ezjail_usage_create="Usage: ${ezjail_admin} create [-xbi] [-f flavour] [-r jailroot] [-s size] [-c bde|eli|zfs] [-C args] [-a archive] [-z parentzfs] jailname jailip" | 46 | ezjail_usage_create="Usage: ${ezjail_admin} create [-xbi] [-f flavour] [-r jailroot] [-s size] [-c bde|eli|zfs] [-C args] [-a archive] [-z parentzfs] jailname jailip" |
47 | ezjail_usage_delete="Usage: ${ezjail_admin} delete [-wf] jailname" | 47 | ezjail_usage_delete="Usage: ${ezjail_admin} delete [-wf] jailname" |
@@ -50,6 +50,7 @@ ezjail_usage_config="Usage: ${ezjail_admin} config [-r run|norun] [-n newname] [ | |||
50 | ezjail_usage_console="Usage: ${ezjail_admin} console [-f] [-e command] jailname" | 50 | ezjail_usage_console="Usage: ${ezjail_admin} console [-f] [-e command] jailname" |
51 | ezjail_usage_archive="Usage: ${ezjail_admin} archive [-Af] [-a archive] [-d archivedir] jailname [jailname...]" | 51 | ezjail_usage_archive="Usage: ${ezjail_admin} archive [-Af] [-a archive] [-d archivedir] jailname [jailname...]" |
52 | ezjail_usage_restore="Usage: ${ezjail_admin} restore [-f] [-d archivedir] (archive|jailname)..." | 52 | ezjail_usage_restore="Usage: ${ezjail_admin} restore [-f] [-d archivedir] (archive|jailname)..." |
53 | ezjail_usage_troubleshoot="Usage: ${ezjail_admin} troubleshoot [jailname...]" | ||
53 | ezjail_usage_list="Usage: ${ezjail_admin} list" | 54 | ezjail_usage_list="Usage: ${ezjail_admin} list" |
54 | 55 | ||
55 | ################################ | 56 | ################################ |
@@ -1622,6 +1623,19 @@ config) | |||
1622 | ;; | 1623 | ;; |
1623 | esac | 1624 | esac |
1624 | ;; | 1625 | ;; |
1626 | ######################## ezjail-admin TROUBLESHOOT ######################## | ||
1627 | troubleshoot) | ||
1628 | shift | ||
1629 | [ $# -gt 0 ] || && cd ${ezjail_jailcfgs} && set - `ls -A` | ||
1630 | |||
1631 | for ezjail; do | ||
1632 | fetchjailinfo ${ezjail%.norun} | ||
1633 | |||
1634 | # Check for existence of jail in our records | ||
1635 | [ "${ezjail_config}" ] || exerr "Error: Nothing known about jail ${ezjail_name}." | ||
1636 | |||
1637 | done | ||
1638 | ;; | ||
1625 | *) | 1639 | *) |
1626 | exerr "${ezjail_usage_ezjailadmin}" | 1640 | exerr "${ezjail_usage_ezjailadmin}" |
1627 | ;; | 1641 | ;; |