mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 03:01:12 +00:00
no message
This commit is contained in:
parent
c18db60e80
commit
db526dfcc8
7
cmd
7
cmd
@ -163,7 +163,7 @@ check_node() {
|
|||||||
|
|
||||||
# 获取容器名称
|
# 获取容器名称
|
||||||
docker_name() {
|
docker_name() {
|
||||||
echo `$COMPOSE ps | awk '{print $1}' | grep "\-$1\-"`
|
echo `$COMPOSE ps $1 --format '{{.Name}}' 2>/dev/null`
|
||||||
}
|
}
|
||||||
|
|
||||||
# 编译前端
|
# 编译前端
|
||||||
@ -552,10 +552,9 @@ run_update() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 检查php容器是否存在
|
# 尝试确定php容器启动
|
||||||
if [ -z "$(docker_name php)" ]; then
|
if [ -z "$(docker_name php)" ]; then
|
||||||
error "没有找到 php 容器!"
|
$COMPOSE start php
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "$is_local" ]]; then
|
if [[ -z "$is_local" ]]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user