harpoon is now nami

This commit is contained in:
Sameer Naik
2016-10-18 19:50:39 +05:30
parent bd3e57a95b
commit 52d84a7317
2 changed files with 4 additions and 4 deletions

View File

@@ -3,14 +3,14 @@ set -e
function initialize {
# Package can be "installed" or "unpacked"
status=`harpoon inspect $1`
status=`nami inspect $1`
if [[ "$status" == *'"lifecycle": "unpacked"'* ]]; then
# Clean up inputs
inputs=""
if [[ -f /$1-inputs.json ]]; then
inputs=--inputs-file=/$1-inputs.json
fi
harpoon initialize $1 $inputs
nami initialize $1 $inputs
fi
}
@@ -29,7 +29,7 @@ export MARIADB_PORT=${MARIADB_PORT:-"3306"}
ln -fs /opt/bitnami/suitecrm/conf/cron /etc/cron.d/suitecrm
if [[ "$1" == "harpoon" && "$2" == "start" ]] || [[ "$1" == "/init.sh" ]]; then
if [[ "$1" == "nami" && "$2" == "start" ]] || [[ "$1" == "/init.sh" ]]; then
for module in apache suitecrm; do
initialize $module
done

View File

@@ -11,5 +11,5 @@ _forwardTerm () {
trap _forwardTerm TERM
/usr/sbin/cron &
harpoon start --foreground apache &
nami start --foreground apache &
wait