Com o trecho de código abaixo, pode-se automatizar todos os comando bash que se deseja executar na estrutura plone, nas versões que faze uso do scritp buildout.
[cmds]
recipe = plone.recipe.command
update-command = ${cmds:command}
command =
mkdir -p ${buildout:directory}/{src,products}
chown -R ${client1:effective-user} ${buildout:directory}/{src,products}
chown -R ${client1:effective-user} ${buildout:directory}/bin/python
chown ${client1:effective-user} ${buildout:directory}
chown -R ${client1:effective-user} ${buildout:directory}/parts
mkdir -p ${buildout:directory}/var/fss_{backup,storage}_global
[cmds]
recipe = plone.recipe.command
update-command = ${cmds:command}
command =
mkdir -p ${buildout:directory}/{src,products}
chown -R ${client1:effective-user} ${buildout:directory}/{src,products}
chown -R ${client1:effective-user} ${buildout:directory}/bin/python
chown ${client1:effective-user} ${buildout:directory}
chown -R ${client1:effective-user} ${buildout:directory}/parts
mkdir -p ${buildout:directory}/var/fss_{backup,storage}_global
Comentários