|
|
@ -22,9 +22,7 @@ theend () { |
|
|
|
|
|
|
|
|
|
|
|
# 获取用户桌面绝对路径 |
|
|
|
# 获取用户桌面绝对路径 |
|
|
|
getHomePath () { |
|
|
|
getHomePath () { |
|
|
|
cd ~/ |
|
|
|
path=`cd ~/ && pwd` |
|
|
|
path=`pwd` |
|
|
|
|
|
|
|
cd - |
|
|
|
|
|
|
|
echo $path |
|
|
|
echo $path |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -170,6 +168,15 @@ dockerStartVideoContainer () { |
|
|
|
videoblog |
|
|
|
videoblog |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 升级docker容器里的代码到最新版 |
|
|
|
|
|
|
|
upgradeMacheteInContainers () { |
|
|
|
|
|
|
|
docker exec -it machete_album /var/www/machete/bin/upgrade.sh |
|
|
|
|
|
|
|
docker container cp template/custom_config_beauty.json machete_album:/var/www/machete/runtime/custom_config.json |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
docker exec -it machete_vlog /var/www/machete/bin/upgrade.sh |
|
|
|
|
|
|
|
docker container cp template/custom_config_videoblog.json machete_vlog:/var/www/machete/runtime/custom_config.json |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# 检测域名是否能连接 |
|
|
|
# 检测域名是否能连接 |
|
|
|
# 返回值:0 - 不能连接,1 - 可连接 |
|
|
|
# 返回值:0 - 不能连接,1 - 可连接 |
|
|
|
detectDomainCanConnect () { |
|
|
|
detectDomainCanConnect () { |
|
|
@ -391,4 +398,8 @@ if [ $containerExist -eq 0 ]; then |
|
|
|
echo "还可以在浏览器输入:http://${ip}:8182/ 打开" |
|
|
|
echo "还可以在浏览器输入:http://${ip}:8182/ 打开" |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "" |
|
|
|
|
|
|
|
echo "升级系统到最新版..." |
|
|
|
|
|
|
|
upgradeMacheteInContainers |
|
|
|
|
|
|
|
|
|
|
|
theend |
|
|
|
theend |