|
|
|
@ -121,49 +121,4 @@ if [ $containerExist -eq 0 ]; then
@@ -121,49 +121,4 @@ if [ $containerExist -eq 0 ]; then
|
|
|
|
|
echo "还可以在浏览器输入:http://${ip}:8181/ 打开" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
theend |
|
|
|
|
exit 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# -------以下代码暂时没有启用-------- |
|
|
|
|
|
|
|
|
|
echo "" |
|
|
|
|
echo "开始安装视频系统..." |
|
|
|
|
containerName="machete_vlog" |
|
|
|
|
detectDockerContainerExists "${containerName}" |
|
|
|
|
containerExist=$? |
|
|
|
|
if [ $containerExist -eq 0 ]; then |
|
|
|
|
read -p "请输入视频保存绝对路径后回车(默认保存到桌面Videos_by_filesite): " vlog_path |
|
|
|
|
if [ -z "${vlog_path}" ]; then |
|
|
|
|
homePath=`getHomePath` |
|
|
|
|
vlog_path="${homePath}/Desktop/Videos_by_filesite" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [ ! -d "${vlog_path}" ]; then |
|
|
|
|
read -p "目录【${vlog_path}】不存在,确认创建此目录继续安装吗?(Y/N): " confirm |
|
|
|
|
if [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]]; then |
|
|
|
|
mkdir -p "${vlog_path}" |
|
|
|
|
echo "目录【${vlog_path}】不存在,已帮你创建" |
|
|
|
|
else |
|
|
|
|
echo "⚠️⚠️" |
|
|
|
|
echo "安装已取消,如需继续安装,请重新执行本安装脚本" |
|
|
|
|
echo "" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
echo "启动视频容器中..." |
|
|
|
|
dockerStartVideoContainer "${containerName}" "${vlog_path}" |
|
|
|
|
docker ps | grep "${containerName}" |
|
|
|
|
echo "升级系统到最新版..." |
|
|
|
|
upgradeMacheteInContainers "vlog" |
|
|
|
|
downloadSamplesVideos "${vlog_path}" |
|
|
|
|
createShortcuts "vlog" |
|
|
|
|
ip=`getLocalIp` |
|
|
|
|
echo "✅✅" |
|
|
|
|
echo "视频系统已成功安装,并在桌面创建了视频系统的快捷方式,可双击打开" |
|
|
|
|
echo "还可以在浏览器输入:http://${ip}:8182/ 打开" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
theend |