Browse Source

remove parameters

master
filesite 5 months ago
parent
commit
dc6688fed9
  1. 21
      README.md
  2. 45
      install.sh

21
README.md

@ -44,14 +44,9 @@ cd machete_installer/ @@ -44,14 +44,9 @@ cd machete_installer/
```
cd machete_installer/
./upgrade.sh [album, vlog]
./upgrade.sh
```
命令支持一个参数,指定升级的系统,可传值:
* album - 相册系统
* vlog - 视频系统
## 刷新快捷方式
@ -59,14 +54,9 @@ cd machete_installer/ @@ -59,14 +54,9 @@ cd machete_installer/
```
cd machete_installer/
./refresh.sh [album, vlog]
./refresh.sh
```
命令支持一个参数,指定刷新的系统,可传值:
* album - 相册系统
* vlog - 视频系统
## 卸载machete
@ -74,14 +64,9 @@ cd machete_installer/ @@ -74,14 +64,9 @@ cd machete_installer/
```
cd machete_installer/
./uninstall.sh [album, vlog]
./uninstall.sh
```
命令支持一个参数,指定卸载的系统,可传值:
* album - 相册系统
* vlog - 视频系统
## 交流QQ群

45
install.sh

@ -122,48 +122,3 @@ if [ $containerExist -eq 0 ]; then @@ -122,48 +122,3 @@ if [ $containerExist -eq 0 ]; then
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
Loading…
Cancel
Save