harpoon has been renamed to nami

This commit is contained in:
Sameer Naik
2016-09-03 13:25:08 +05:30
parent 16b30ac5fb
commit 5bd801d3bb
2 changed files with 4 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ ENV PATH=/opt/bitnami/$BITNAMI_APP_NAME/sbin:/opt/bitnami/$BITNAMI_APP_NAME/bin:
COPY rootfs/ /
ENTRYPOINT ["/app-entrypoint.sh"]
CMD ["harpoon", "start", "--foreground", "mariadb"]
CMD ["nami", "start", "--foreground", "mariadb"]
VOLUME ["/bitnami/$BITNAMI_APP_NAME"]

View File

@@ -1,10 +1,10 @@
#!/bin/bash
set -e
if [[ "$1" == "harpoon" && "$2" == "start" ]]; then
status=`harpoon inspect $BITNAMI_APP_NAME`
if [[ "$1" == "nami" && "$2" == "start" ]]; then
status=`nami inspect $BITNAMI_APP_NAME`
if [[ "$status" == *'"lifecycle": "unpacked"'* ]]; then
harpoon initialize $BITNAMI_APP_NAME \
nami initialize $BITNAMI_APP_NAME \
${MARIADB_ROOT_PASSWORD:+--rootPassword $MARIADB_ROOT_PASSWORD} \
${MARIADB_USER:+--username $MARIADB_USER} \
${MARIADB_PASSWORD:+--password $MARIADB_PASSWORD} \