diff options
author | erdgeist <erdgeist@erdgeist.org> | 2005-09-05 02:51:02 +0000 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2005-09-05 02:51:02 +0000 |
commit | e3fb840fca8d54755218e200caea12d278d458ea (patch) | |
tree | bbe98ba97b3d610013b92e038013f9f75186f2eb | |
parent | 220614e2f636435465e68432095073f796fce8ba (diff) |
more sanity checks
-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 |