diff options
-rwxr-xr-x | ezjail-admin | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ezjail-admin b/ezjail-admin index e7fe216..613e73b 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
@@ -7,13 +7,12 @@ if [ "0" != "`id -u`" ]; then | |||
7 | echo "Retry as root"; exit 1; | 7 | echo "Retry as root"; exit 1; |
8 | fi | 8 | fi |
9 | 9 | ||
10 | exit | ||
11 | if [ -f ${ezjail_prefix}/etc/ezjail.conf ]; then | 10 | if [ -f ${ezjail_prefix}/etc/ezjail.conf ]; then |
12 | . ${ezjail_prefix}/etc/ezjail.conf; | 11 | . ${ezjail_prefix}/etc/ezjail.conf; |
13 | fi | 12 | fi |
14 | 13 | ||
15 | if [ -z "$1" ]; | 14 | if [ -z "$1" ]; |
16 | then echo "Syntax: $0 [create|delete|list|update] {params}"; exit; | 15 | then echo "Syntax: `basename $0` [create|delete|list|update] {params}"; exit; |
17 | fi | 16 | fi |
18 | 17 | ||
19 | case "$1" in | 18 | case "$1" in |
@@ -52,4 +51,7 @@ update) | |||
52 | mv ${ezjail_jailfull} ${ezjail_jailtemplate} | 51 | mv ${ezjail_jailfull} ${ezjail_jailtemplate} |
53 | 52 | ||
54 | ;; | 53 | ;; |
54 | *) | ||
55 | echo "Syntax: `basename $0` [create|delete|list|update] {params}"; exit; | ||
56 | ;; | ||
55 | esac | 57 | esac |