18 Star 18 Fork 21

openEuler/gala-anteater

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
entrypoint.sh 800 Bytes
一键复制 编辑 原始数据 按行查看 历史
li-zhenxing2022 提交于 2023-08-11 10:48 . update README.md
#!/bin/bash
TARGET_CONF_PATH="/etc/gala-anteater/config/"
TARGET_MODULE_PATH="/etc/gala-anteater/module/"
# copy config file to target path``
if [ ! -d "${TARGET_CONF_PATH}" ]; then
mkdir -p ${TARGET_CONF_PATH}
fi
if [ ! -d "${TARGET_MODULE_PATH}" ]; then
mkdir -p ${TARGET_MODULE_PATH}
fi
for file in `ls config/`; do
if [ ! -f "${TARGET_CONF_PATH}${file}" ]; then
cp -r config/${file} ${TARGET_CONF_PATH}
fi
done
# remove "/etc/gala-anteater/config/module" folder
if [ -d "${TARGET_CONF_PATH}module" ]; then
rm -rf ${TARGET_CONF_PATH}module
fi
# copy module config to TARGET_MODULE_PATH folder
for file in `ls config/module/`; do
if [ ! -f "${TARGET_MODULE_PATH}${file}" ]; then
cp -r config/module/${file} ${TARGET_MODULE_PATH}
fi
done
exec "$@"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openeuler/gala-anteater.git
git@gitee.com:openeuler/gala-anteater.git
openeuler
gala-anteater
gala-anteater
master

搜索帮助