summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xezjail-admin14
1 files changed, 7 insertions, 7 deletions
diff --git a/ezjail-admin b/ezjail-admin
index 2a530b0..91c58f1 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -158,7 +158,7 @@ create)
158 i) ezjail_imagetype=${ezjail_imagetype:-"simple"};; 158 i) ezjail_imagetype=${ezjail_imagetype:-"simple"};;
159 s) ezjail_imagesize="${OPTARG}";; 159 s) ezjail_imagesize="${OPTARG}";;
160 u) ezjail_urlpass="${OPTARG}";; 160 u) ezjail_urlpass="${OPTARG}";;
161 ?) exerr ${ezjail_usage_create} 161 ?) exerr ${ezjail_usage_create};;
162 esac; done; shift $(( ${OPTIND} - 1 )) 162 esac; done; shift $(( ${OPTIND} - 1 ))
163 163
164 ezjail_name=$1; ezjail_ip=$2 164 ezjail_name=$1; ezjail_ip=$2
@@ -170,7 +170,7 @@ create)
170 [ "${ezjail_imagetype}" -a -z "${ezjail_exists}" -a -z "${ezjail_imagesize}" ] && exerr "Image jails need an image size." 170 [ "${ezjail_imagetype}" -a -z "${ezjail_exists}" -a -z "${ezjail_imagesize}" ] && exerr "Image jails need an image size."
171 171
172 # check for a sane image type 172 # check for a sane image type
173 case ${ezjail_imagetype} in ""|simple|bde|eli) ;; *) exerr ${ezjail_usage_create} 173 case ${ezjail_imagetype} in ""|simple|bde|eli) ;; *) exerr ${ezjail_usage_create};; esac
174 174
175 # check for a sane image size and split it up in blocks 175 # check for a sane image size and split it up in blocks
176 if [ "${ezjail_imagesize}" ]; then 176 if [ "${ezjail_imagesize}" ]; then
@@ -371,7 +371,7 @@ delete)
371 371
372 shift; while getopts :w arg; do case ${arg} in 372 shift; while getopts :w arg; do case ${arg} in
373 w) ezjail_wipeme="YES";; 373 w) ezjail_wipeme="YES";;
374 ?) exerr ${ezjail_usage_delete} 374 ?) exerr ${ezjail_usage_delete};;
375 esac; done; shift $(( $OPTIND - 1 )) 375 esac; done; shift $(( $OPTIND - 1 ))
376 376
377 # we need name of jail to vanish 377 # we need name of jail to vanish
@@ -429,7 +429,7 @@ setup|update)
429 s) ezjail_sourcetree="${OPTARG}";; 429 s) ezjail_sourcetree="${OPTARG}";;
430 p) ezjail_provideports="YES";; 430 p) ezjail_provideports="YES";;
431 P) ezjail_provideports="YES"; ezjail_installaction="none";; 431 P) ezjail_provideports="YES"; ezjail_installaction="none";;
432 ?) exerr ${ezjail_usage_update} 432 ?) exerr ${ezjail_usage_update};;
433 esac; done; shift $(( ${OPTIND} - 1 )) 433 esac; done; shift $(( ${OPTIND} - 1 ))
434 434
435 [ $# -eq 0 ] || exerr ${ezjail_usage_update} 435 [ $# -eq 0 ] || exerr ${ezjail_usage_update}
@@ -470,7 +470,7 @@ install)
470 p) ezjail_installports="YES";; 470 p) ezjail_installports="YES";;
471 h) ezjail_ftphost="${OPTARG}";; 471 h) ezjail_ftphost="${OPTARG}";;
472 r) ezjail_release="${OPTARG}";; 472 r) ezjail_release="${OPTARG}";;
473 ?) exerr ${ezjail_usage_install} 473 ?) exerr ${ezjail_usage_install};;
474 esac; done; shift $(( ${OPTIND} - 1 )) 474 esac; done; shift $(( ${OPTIND} - 1 ))
475 475
476 [ $# -eq 0 ] || exerr ${ezjail_usage_install} 476 [ $# -eq 0 ] || exerr ${ezjail_usage_install}
@@ -543,7 +543,7 @@ config)
543 543
544 shift; while getopts :r: arg; do case ${arg} in 544 shift; while getopts :r: arg; do case ${arg} in
545 r) ezjail_setrunnable=${OPTARG};; 545 r) ezjail_setrunnable=${OPTARG};;
546 ?) exerr ${ezjail_usage_config} 546 ?) exerr ${ezjail_usage_config};;
547 esac; done; shift $(( ${OPTIND} - 1 )) 547 esac; done; shift $(( ${OPTIND} - 1 ))
548 548
549 [ $# -eq 1 ] || exerr ${ezjail_usage_config} 549 [ $# -eq 1 ] || exerr ${ezjail_usage_config}
@@ -608,6 +608,6 @@ _parse_gbde_attach_args_)
608############################################################################## 608##############################################################################
609 609
610*) 610*)
611 exerr ${ezjail_usage_ezjail} 611 exerr ${ezjail_usage_ezjailadmin}
612 ;; 612 ;;
613esac 613esac