feat: add more robot details

Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
Xinwei Xiong(cubxxw-openim)
2023-08-16 10:55:25 +08:00
parent d111769a93
commit 5424129163
30 changed files with 556 additions and 6 deletions
+5 -5
View File
@@ -20,12 +20,12 @@
env_file="$1"
template_file="$2"
IAM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
source "${IAM_ROOT}/scripts/lib/init.sh"
source "${OPENIM_ROOT}/scripts/lib/init.sh"
if [ $# -ne 2 ];then
iam::log::error "Usage: genconfig.sh scripts/environment.sh configs/iam-apiserver.yaml"
openim::log::error "Usage: scripts/genconfig.sh scripts/environment.sh configs/openim-api.yaml"
exit 1
fi
@@ -37,13 +37,13 @@ set +u
for env in $(sed -n 's/^[^#].*${\(.*\)}.*/\1/p' ${template_file})
do
if [ -z "$(eval echo \$${env})" ];then
iam::log::error "environment variable '${env}' not set"
openim::log::error "environment variable '${env}' not set"
missing=true
fi
done
if [ "${missing}" ];then
iam::log::error 'You may run `source scripts/environment.sh` to set these environment'
openim::log::error 'You may run `source scripts/environment.sh` to set these environment'
exit 1
fi