-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
fix issue #12657 #12658
fix issue #12657 #12658
Conversation
Your PR was set to target |
@Macavity Please review it |
如果指定了workspace,相应地得改workspace的所有者权限,而不是/siyuan/workspace |
这个 PR 中没有实现对吗?只是写死了 /siyuan/workspace 路径? |
没有实现,看Macavity的pr才看到有workspace参数。我修改的话暂时只想到引入env,如果这样修改,以前指定了workspace参数的得修改运行命令。等看看其它人有什么优雅的实现吧 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
@Macavity I believe that the ownership of the workspace should also change if a specific workspace is mentioned. This pr implements that change following your initial review. Please take a moment to review it again. |
已经实现 |
chown -R "${PUID}:${PGID}" /opt/siyuan | ||
chown -R "${PUID}:${PGID}" /home/siyuan/ | ||
chown -R "${PUID}:${PGID}" /siyuan/workspace | ||
chown -R "${PUID}:${PGID}" "${WORKSPACE_DIR}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good idea 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for adjusting the original changes and allow to adjust the workspace directory ownership as well 👍
Thanks to everyone for discussing and solving this issue, we merged it. |
修复issue #12657
pr #12596 对uid的判断有问题,还有漏了/siyuan/workspace的文件权限
我这边测试没问题