Merge pull request #409 from phxa1/chore-upgrade-sh
chore(upgrade.sh): check env installed by collie
This commit is contained in:
commit
d6322d70b3
1 changed files with 5 additions and 0 deletions
|
@ -176,6 +176,11 @@ done
|
|||
|
||||
cd "$safeline_path"
|
||||
|
||||
grep COLLIE .env > /dev/null 2>&1
|
||||
if [ $? -eq "0" ]; then
|
||||
abort "检测到你的环境通过牧云主机助手安装,请使用牧云主机助手-应用市场进行升级."
|
||||
fi
|
||||
|
||||
compose_name=`ls docker-compose.yaml compose.yaml 2>/dev/null`
|
||||
compose_path=$safeline_path/$compose_name
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue