-
Notifications
You must be signed in to change notification settings - Fork 26
feat: 添加更新以及純節點安裝腳本,將setup腳本中獲取版本改為自動獲取 #53
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: master
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
更新脚本和安装脚本为什么不能写到一起呢?目前安装脚本就是支持更新的,更新的原理其实就是先停止Daemon,然后覆盖代码文件,只要避免 data 目录不被删除或更变,再重启daemon就可以了。 流程上和安装是一样的,可以聚合到一起,这样后续可以只维护一个脚本。 如果聚合到一起,就不需要单独建一个文件夹了。 |
了解,可以寫一起,這兩個的腳本幾乎一樣。 |
安裝腳本支援只有守護進程的更新 |
@yumao233 還有哪邊需要改善的嗎? |
抱歉,最近忙,刚刚细看了下你对现有的 setup.sh 脚本的更改,我觉得很多地方还是改动的不合适。 首先备份数据这里肯定是不能这样操作的,很多人的存档可能上百GB,而且小文件非常多,你这复制一下没半个小时是完成不了的。 # backup data
if [ -d "${mcsmanager_install_path}/daemon/data" ]; then
mkdir -p "$mcsmanager_install_path/temp/daemon"
cp -rf $mcsmanager_install_path/daemon/data/* $mcsmanager_install_path/temp/daemon
fi 其次我看了你在现有的脚本中新增了一个叫 现有的 setup.sh 脚本(含setup_cn.sh)已经实现了安装,更新一体化,无需进行这些更改。 |
是的web_install變量是為了自動跳過web安裝 我晚點把備份資料那段給刪掉 |
我的建议是,原有的 setup.sh 其实没有改动的必要,顶多就是改改版本号那块。 然后你基于 setup.sh 的思路,写一个专门安装 Daemon 端的就行了。 因为原来的setup.sh已经支持安装,更新的功能 |
我有寫一個專門用於安裝 Daemon 端的setup.sh,就在 Daemon 資料夾裡 daemon/setup.sh |
No description provided.