summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2005-09-05 02:51:02 +0000
committererdgeist <erdgeist@erdgeist.org>2005-09-05 02:51:02 +0000
commite3fb840fca8d54755218e200caea12d278d458ea (patch)
treebbe98ba97b3d610013b92e038013f9f75186f2eb
parent220614e2f636435465e68432095073f796fce8ba (diff)
more sanity checks
-rwxr-xr-xezjail-admin6
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;
8fi 8fi
9 9
10exit
11if [ -f ${ezjail_prefix}/etc/ezjail.conf ]; then 10if [ -f ${ezjail_prefix}/etc/ezjail.conf ]; then
12 . ${ezjail_prefix}/etc/ezjail.conf; 11 . ${ezjail_prefix}/etc/ezjail.conf;
13fi 12fi
14 13
15if [ -z "$1" ]; 14if [ -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;
17fi 16fi
18 17
19case "$1" in 18case "$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 ;;
55esac 57esac