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

ezjail-admin bug with more than one ezjail.flavour scripts



There is a problem when ezjail-admin moves the second ezjail.flavour
script: it's named .0001 too and overwrites the first.

l.674:
         mv "${ezjail_rootdir}/ezjail.flavour"
"${ezjail_rootdir}/ezjail.flavour".`printf %04d $((
installed_flavours+=1 ))`

$((installed_flavours+=1)) works, but I don't know why `printf %04d
$((installed_flavours+=1))` never increments $installed_flavours :(

I know that this kind of flavourizing script is 'deprecated' in favour
of /etc/rc.d ones, but I though it may save some time to someone like me ;)

cheap solution: increment $installed_flavours elsewhere in the loop

ps: this problem is not new in 3.2

Thank you for this great script !
-- 
*Geoffroy Desvernay*
C.R.I - Administration systèmes et réseaux
Ecole Centrale de Marseille


Attachment: signature.asc
Description: OpenPGP digital signature