From c270955ae0294666d25984244588456723579b38 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Thu, 9 Feb 2006 00:44:49 +0000 Subject: Radical change of what an ezjail flavour is. The old way got me stuck. --- ezjail-admin | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ezjail-admin') diff --git a/ezjail-admin b/ezjail-admin index f629a73..cf3ddf9 100755 --- a/ezjail-admin +++ b/ezjail-admin @@ -130,8 +130,11 @@ create) cd ${ezjail_flavours}/${newjail_flavour} find * | cpio -p -v ${newjail_root} > /dev/null - install -o root -g wheel -m 0755 ${ezjail_share}/ezjail-config.sh ${newjail_root}/etc/rc.d/ezjail-config.sh - echo "Note: Shell scripts installed, flavourizing on jails first startup." + if [ -f ${ezjail_share}/ezjail.flavour ]; then + ln -s /ezjail.flavour ${newjail_root}/etc/rc.d/ezjail-config.sh + chmod 0700 ${newjail_root}/etc/rc.d/ezjail-config.sh + echo "Note: Shell scripts installed, flavourizing on jails first startup." + fi fi # For user convenience, some scenarios commonly causing -- cgit v1.2.3