|
|
@ -240,7 +240,7 @@ docker_installed=$? |
|
|
|
if [ $docker_installed -eq 0 ]; then |
|
|
|
if [ $docker_installed -eq 0 ]; then |
|
|
|
getCpuInfo |
|
|
|
getCpuInfo |
|
|
|
|
|
|
|
|
|
|
|
detect_domain='https://desktop.docker.com' |
|
|
|
detect_domain='desktop.docker.com' |
|
|
|
echo "正在检测是否能连接[${detect_domain}],请稍后..." |
|
|
|
echo "正在检测是否能连接[${detect_domain}],请稍后..." |
|
|
|
detectDomainCanConnect "${detect_domain}" |
|
|
|
detectDomainCanConnect "${detect_domain}" |
|
|
|
connect_res=$? |
|
|
|
connect_res=$? |
|
|
@ -314,6 +314,10 @@ detectDockerContainerExists "${containerName}" |
|
|
|
containerExist=$? |
|
|
|
containerExist=$? |
|
|
|
if [ $containerExist -eq 0 ]; then |
|
|
|
if [ $containerExist -eq 0 ]; then |
|
|
|
read -p "请输入相册保存路径后回车(默认保存到桌面~/Desktop/Album_by_filesite): " album_path |
|
|
|
read -p "请输入相册保存路径后回车(默认保存到桌面~/Desktop/Album_by_filesite): " album_path |
|
|
|
|
|
|
|
if [ -z "${album_path}" ]; then |
|
|
|
|
|
|
|
album_path="~/Desktop/Album_by_filesite" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if [ ! -d "${album_path}" ]; then |
|
|
|
if [ ! -d "${album_path}" ]; then |
|
|
|
read -p "目录【${album_path}】不存在,确认创建此目录继续安装吗?(Y/N): " confirm |
|
|
|
read -p "目录【${album_path}】不存在,确认创建此目录继续安装吗?(Y/N): " confirm |
|
|
|
if [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]]; then |
|
|
|
if [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]]; then |
|
|
@ -344,6 +348,10 @@ detectDockerContainerExists "${containerName}" |
|
|
|
containerExist=$? |
|
|
|
containerExist=$? |
|
|
|
if [ $containerExist -eq 0 ]; then |
|
|
|
if [ $containerExist -eq 0 ]; then |
|
|
|
read -p "请输入视频保存路径后回车(默认保存到桌面~/Desktop/Videos_by_filesite): " vlog_path |
|
|
|
read -p "请输入视频保存路径后回车(默认保存到桌面~/Desktop/Videos_by_filesite): " vlog_path |
|
|
|
|
|
|
|
if [ -z "${vlog_path}" ]; then |
|
|
|
|
|
|
|
vlog_path="~/Desktop/Videos_by_filesite" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if [ ! -d "${vlog_path}" ]; then |
|
|
|
if [ ! -d "${vlog_path}" ]; then |
|
|
|
read -p "目录【${vlog_path}】不存在,确认创建此目录继续安装吗?(Y/N): " confirm |
|
|
|
read -p "目录【${vlog_path}】不存在,确认创建此目录继续安装吗?(Y/N): " confirm |
|
|
|
if [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]]; then |
|
|
|
if [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]]; then |
|
|
|