Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

威联通QNAP重启后,hlink无需重新设置配置的一种解决思路 #190

Open
robinletian opened this issue Oct 24, 2024 · 0 comments

Comments

@robinletian
Copy link

需要在安装的时候,把【容器路径】,指定一个重启后不会消失或重置的文件夹,

然后在这个文件夹里做一个软链接到/share(主机路径)。可以用命令行或者winscp右键-新建-连接

举个例子:
1.已知docker版的hlink需要用到两个【容器路径】,如下
/data 和
/share

2.这两个【容器路径】,需要分别指定两个【主机路径】,如下
/Container/hlink/data (卷 / 主机路径)
/data (容器路径)

/Container/hlink/share(卷 / 主机路径)
/share(容器路径)

3.把/share(容器路径)对应的主机路径,改成软连接到/share,
在/Container/hlink/ 文件夹下,新建文件夹data,再新建一个软链接,链接的名字叫share,链接到/share 路径(这个/share是主机路径,不是容器路径!)

亲测这样重启后配置还在不会丢,也不影响日常硬链接的操作。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant