-#!/bin/sh
-
+#!/usr/bin/env bash
#
-# Copyright 2017-2020 ZTE Corporation.
+# Copyright 2017-2021 ZTE Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
export SERVICE_IP=`hostname -i | awk '{print $1}'`
echo SERVICE_IP=${SERVICE_IP}
-if [ ! -z ${TESTING} ] && [ ${TESTING} = 1 ]; then
- if [ ! -z ${HOST_IP} ]; then
- export HOSTNAME=${HOST_IP}:9102
- else
- export HOSTNAME=${SERVICE_IP}:9102
- fi
+if [ ! -z ${HOST_IP} ]; then
+ export HOSTNAME=${HOST_IP}:9102
+else
+ export HOSTNAME=${SERVICE_IP}:9102
fi
export DB_PORT=5432