Commit 98c461c8 authored by Marco Mariani's avatar Marco Mariani

use cp.recipe.cmd instead of plone.recipe.command for bash compatibility

with .bashrc
parent 661e13d3
......@@ -271,14 +271,14 @@ zimbra-home = ${buildout:directory}/zimbra-home
[zimbra-unpack-store]
# extract binaries and scripts from the .deb packages
# export ZIMBRA_INSTALLED_PKGS="zimbra-core zimbra-store"
recipe = plone.recipe.command
stop-on-error = True
recipe = cp.recipe.cmd
# required to source .bashrc
shell = /bin/bash
PACKAGE_LIST = zimbra-core zimbra-store
ZIMBRA_HOME = ${environment:ZIMBRA_HOME}
PACKAGES = /home/marco/zbuild/amd64
update-command = ${:command}
command =
update_cmd = ${:install_cmd}
install_cmd =
rm -rf ${:ZIMBRA_HOME}
mkdir ${:ZIMBRA_HOME}
cd ${:ZIMBRA_HOME}
......@@ -307,19 +307,21 @@ command =
chmod 1777 data/tmp
mkdir backup ssl .ssh zmstat
. ${:ZIMBRA_HOME}/.bashrc
ZIMBRA_INSTALLED_PKGS="${:PACKAGE_LIST}" ${:ZIMBRA_HOME}/libexec/zmsetup.pl
[zimbra-unpack-ldap]
# extract binaries and scripts from the .deb packages
recipe = plone.recipe.command
stop-on-error = True
recipe = cp.recipe.cmd
# required to source .bashrc
shell = /bin/bash
PACKAGE_LIST = zimbra-core zimbra-ldap
ZIMBRA_HOME = ${environment:ZIMBRA_HOME}
PACKAGES = /home/marco/zbuild/amd64
update-command = ${:command}
command =
update_cmd = ${:install_cmd}
install_cmd =
rm -rf ${:ZIMBRA_HOME}
mkdir ${:ZIMBRA_HOME}
cd ${:ZIMBRA_HOME}
......@@ -352,19 +354,21 @@ command =
# clear credential cache to spot commands in zmsetup.pl that would require sudo
sudo -k
. ${:ZIMBRA_HOME}/.bashrc
ZIMBRA_INSTALLED_PKGS="${:PACKAGE_LIST}" ${:ZIMBRA_HOME}/libexec/zmsetup.pl
[zimbra-unpack-mta]
# extract binaries and scripts from the .deb packages
recipe = plone.recipe.command
stop-on-error = True
recipe = cp.recipe.cmd
# required to source .bashrc
shell = /bin/bash
PACKAGE_LIST = zimbra-core zimbra-mta
ZIMBRA_HOME = ${environment:ZIMBRA_HOME}
PACKAGES = /home/marco/zbuild/amd64
update-command = ${:command}
command =
update_cmd = ${:install_cmd}
install_cmd =
rm -rf ${:ZIMBRA_HOME}
mkdir ${:ZIMBRA_HOME}
cd ${:ZIMBRA_HOME}
......@@ -402,6 +406,7 @@ command =
mkdir -p data/amavisd/quarantine
mkdir -p data/clamav/db
mkdir -p data/postfix/spool/pid
mkdir -p conf/sa
mkdir -p data/tmp
chmod 1777 data/tmp
......@@ -411,6 +416,7 @@ command =
# clear credential cache to spot commands in zmsetup.pl that would require sudo
sudo -k
. ${:ZIMBRA_HOME}/.bashrc
ZIMBRA_INSTALLED_PKGS="${:PACKAGE_LIST}" ${:ZIMBRA_HOME}/libexec/zmsetup.pl
......@@ -426,13 +432,14 @@ command =
[zimbra-unpack-all]
# extract binaries and scripts from the .deb packages
recipe = plone.recipe.command
stop-on-error = True
recipe = cp.recipe.cmd
# required to source .bashrc
shell = /bin/bash
PACKAGE_LIST = zimbra-core zimbra-ldap zimbra-mta zimbra-store
ZIMBRA_HOME = ${environment:ZIMBRA_HOME}
PACKAGES = /home/marco/zbuild/amd64
update-command = ${:command}
command =
update_cmd = ${:install_cmd}
install_cmd =
rm -rf ${:ZIMBRA_HOME}
mkdir ${:ZIMBRA_HOME}
cd ${:ZIMBRA_HOME}
......@@ -475,6 +482,7 @@ command =
mkdir -p data/amavisd/quarantine
mkdir -p data/clamav/db
mkdir -p data/postfix/spool/pid
mkdir -p conf/sa
mkdir -p data/tmp
chmod 1777 data/tmp
......@@ -486,5 +494,6 @@ command =
# clear credential cache to spot commands in zmsetup.pl that would require sudo
sudo -k
. ${:ZIMBRA_HOME}/.bashrc
ZIMBRA_INSTALLED_PKGS="${:PACKAGE_LIST}" ${:ZIMBRA_HOME}/libexec/zmsetup.pl
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment