summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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