summaryrefslogtreecommitdiff
path: root/ezjail-admin
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2005-12-31 01:50:10 +0000
committererdgeist <erdgeist@erdgeist.org>2005-12-31 01:50:10 +0000
commit523224e63efeb74fc0bbd038a25a10772756ca46 (patch)
tree5b8f2601b204ca06cf23bf1207d27ed88965c2b9 /ezjail-admin
parentddbf80c98fe09ea26c09cf4a9e04e5f8fb383c1c (diff)
Flavours now head to their final layout:
the whole bunch of stuff found below flavour dir is being installed into the new jails root, including the flavour config, packages and files. The startup scripts now only creates users, chowns the files it is told to and installs packages.
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