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

挂载持久化卷时,可以提前创建好对应目录,这样可以不依赖docker的自动创建目录的特性,避免权限问题 #203

Merged
merged 5 commits into from
Oct 24, 2023
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions dochat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@
# Issue #111 - https://github.com/huan/docker-wechat/issues/111
rm -f "$HOME/DoChat/Applcation Data/Tencent/WeChat/All Users/config/configEx.ini"

# Issue #165 - https://github.com/huan/docker-wechat/issues/165#issuecomment-1643063633
HOST_DIR_HOME_DOCHAT_WECHAT_FILES = "$HOME/DoChat/WeChat Files/"

Check failure on line 101 in dochat.sh

View workflow job for this annotation

GitHub Actions / Build

[shellcheck] reported by reviewdog 🐶 Remove spaces around = to assign (or use [ ] to compare, or quote '=' if literal). Raw Output: ./dochat.sh:101:37: error: Remove spaces around = to assign (or use [ ] to compare, or quote '=' if literal). (ShellCheck.SC2283)
HOST_DIR_HOME_DOCHAT_APPLICATION_DATA = "$HOME/DoChat/Applcation Data/"

Check failure on line 102 in dochat.sh

View workflow job for this annotation

GitHub Actions / Build

[shellcheck] reported by reviewdog 🐶 Remove spaces around = to assign (or use [ ] to compare, or quote '=' if literal). Raw Output: ./dochat.sh:102:41: error: Remove spaces around = to assign (or use [ ] to compare, or quote '=' if literal). (ShellCheck.SC2283)
mkdir "$HOST_DIR_HOME_DOCHAT_WECHAT_FILES" -p
mkdir "$HOST_DIR_HOME_DOCHAT_APPLICATION_DATA" -p

#
# --privileged: enable sound (/dev/snd/)
# --ipc=host: enable MIT_SHM (XWindows)
Expand All @@ -107,8 +113,8 @@
--rm \
-i \
\
-v "$HOME/DoChat/WeChat Files/":'/home/user/WeChat Files/' \
-v "$HOME/DoChat/Applcation Data":'/home/user/.wine/drive_c/users/user/Application Data/' \
-v "$HOST_DIR_HOME_DOCHAT_WECHAT_FILES":'/home/user/WeChat Files/' \
-v "$HOST_DIR_HOME_DOCHAT_APPLICATION_DATA":'/home/user/.wine/drive_c/users/user/Application Data/' \
-v /tmp/.X11-unix:/tmp/.X11-unix \
\
-e DISPLAY \
Expand Down
Loading