This commit is contained in:
qiaofeng1227 2024-10-21 11:05:34 +08:00
parent a7c657785f
commit 85dab10819

View file

@ -51,7 +51,7 @@ version="latest"
channel="release" channel="release"
path="/data/websoft9/source" path="/data/websoft9/source"
apps="" apps=""
mirrors="https://docker.rainbond.cc,https://registry.inner.websoft9.cn" mirrors="https://dockerhub.websoft9.com"
# 获取参数值 # 获取参数值
while [[ $# -gt 0 ]]; do while [[ $# -gt 0 ]]; do
@ -474,12 +474,6 @@ install_backends() {
exit 1 exit 1
fi fi
if jq -e '.["registry-mirrors"]' "$DOCKER_CONFIG_FILE" > /dev/null; then
jq 'del(.["registry-mirrors"])' "$DOCKER_CONFIG_FILE" > "${DOCKER_CONFIG_FILE}.tmp" && sudo mv "${DOCKER_CONFIG_FILE}.tmp" "$DOCKER_CONFIG_FILE"
sudo systemctl daemon-reload
sudo systemctl restart docker
fi
if [ "$execute_mode" = "install" ]; then if [ "$execute_mode" = "install" ]; then
sudo docker exec -i websoft9-apphub apphub setconfig --section domain --key wildcard_domain --value "" sudo docker exec -i websoft9-apphub apphub setconfig --section domain --key wildcard_domain --value ""
if [ -n "$apps" ]; then if [ -n "$apps" ]; then