summaryrefslogtreecommitdiff
path: root/ezjail-admin
diff options
context:
space:
mode:
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-xezjail-admin7
1 files changed, 5 insertions, 2 deletions
diff --git a/ezjail-admin b/ezjail-admin
index d7c8791..59d6ce9 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -85,7 +85,6 @@ create)
85 # do some sanity checks on the selected flavour (if any) 85 # do some sanity checks on the selected flavour (if any)
86 if [ "${newjail_flavour}" ]; then 86 if [ "${newjail_flavour}" ]; then
87 [ -d ${ezjail_flavours}/${newjail_flavour}/ ] || exerr "Error: Flavour config directory ${ezjail_flavours}/${newjail_flavour} not found" 87 [ -d ${ezjail_flavours}/${newjail_flavour}/ ] || exerr "Error: Flavour config directory ${ezjail_flavours}/${newjail_flavour} not found"
88 [ -d ${ezjail_flavours}/${newjail_flavour}/ezjail.flavour ] || exerr "Error: Flavour config ${ezjail_flavours}/${newjail_flavour}/ezjail.flavour not found"
89 fi 88 fi
90 89
91 # now take a copy of our template jail 90 # now take a copy of our template jail
@@ -138,7 +137,11 @@ create)
138 137
139 # Final steps for flavour installation 138 # Final steps for flavour installation
140 if [ "${newjail_flavour}" ]; then 139 if [ "${newjail_flavour}" ]; then
141 cp -r -p ${ezjail_jaildir}/${newjail_flavour} ${newjail_root}/config 140 # install files, packages and config to new jail
141 # user creating, chown and package installation on jails startup
142 cd ${ezjail_jaildir}/${newjail_flavour}
143 find * | cpio -p -v ${newjail_root} > /dev/null
144
142 install -o root -g wheel -m 0755 ${ezjail_share}/ezjail-config.sh ${newjail_root}/etc/rc.d/ezjail-config.sh 145 install -o root -g wheel -m 0755 ${ezjail_share}/ezjail-config.sh ${newjail_root}/etc/rc.d/ezjail-config.sh
143 echo "Note: Shell scripts installed, flavourizing on jails first startup" 146 echo "Note: Shell scripts installed, flavourizing on jails first startup"
144 fi 147 fi