[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ezjail] small bug



I'm not testing the last version 3.1 I see the code

in ezjail-admin you use basejail :

Line: 257 mkdir basejail

Line: 274 [ -e "${ezjail_jailtemplate}/usr/ports" ] || ln -s /basejail/usr/ports "${ezjail_jailtemplate}/usr/ports"
etc...

Search in the code


Dirk Engling wrote:

The problem is if I want to change only the directory /basejail to another name like (virtualjail, vps, etc...)

ezjail_jaildir=/usr
ezjail_jailbase=${ezjail_jaildir}/basejail
to
ezjail_jaildir=/usr
ezjail_jailbase=${ezjail_jaildir}/virtualjail

But... ezjail_jailbase is only here:

: ${ezjail_jailbase="${ezjail_jaildir}/basejail"}

this means, that it is only set to "${ezjail_jaildir}/basejail if previously unset.

If you set:

ezjail_jaildir=/usr/jails
ezjail_jailbase=/usr/virtualjail

all is fine. What don't I get here?

  erdgeist