summaryrefslogtreecommitdiff
path: root/ezjail-admin
diff options
context:
space:
mode:
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-xezjail-admin7
1 files changed, 7 insertions, 0 deletions
diff --git a/ezjail-admin b/ezjail-admin
index c300d94..ef15668 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -61,6 +61,13 @@ create)
61 echo "Warning: IP $newjail_ip not configured on a local interface" 61 echo "Warning: IP $newjail_ip not configured on a local interface"
62 fi 62 fi
63 63
64 # check, whether ezjail-update has been called. existence of
65 # ezjail_jailbase is our indicator
66 if [ ! -d $ezjail_jailbase ]; then
67 echo "Error: base jail does not exist. Please run 'ezjail-admin update' first"
68 exit 1;
69 fi
70
64 # relative paths don't make sense in rc.scripts 71 # relative paths don't make sense in rc.scripts
65 if [ ${ezjail_jaildir#/} = ${ezjail_jaildir} ]; then 72 if [ ${ezjail_jaildir#/} = ${ezjail_jaildir} ]; then
66 echo "Error: Need an absolute path in ezjail_jaildir, it is currently set to: $ezjail_jaildir" 73 echo "Error: Need an absolute path in ezjail_jaildir, it is currently set to: $ezjail_jaildir"