mirror of
https://github.com/bitnami/containers.git
synced 2026-03-13 14:58:03 +08:00
harpoon is now nami
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -11,5 +11,5 @@ _forwardTerm () {
|
||||
trap _forwardTerm TERM
|
||||
|
||||
/usr/sbin/cron &
|
||||
harpoon start --foreground apache &
|
||||
nami start --foreground apache &
|
||||
wait
|
||||
|
||||
Reference in New Issue
Block a user