-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Wrong user directory matching rule when copying to server #103
Comments
没想到哥们也在用 WPCloudDeploy,不过貌似开发者上个月去世了,目前官方网站和相关的几个网站都无法访问了,不知道后续有没有人接手,郁闷…… |
啊……我们在基于 WPCloudDeploy 做政务SaaS,第一个切入点是红十字会,现在已经进入到地市一级推广的阶段了,我没有想过会出现这种情况,哎 |
@cmhello request, if you could pls post in ENGLISH. It will be easy for us to understand and follow. |
@sunxiyuan @cmhello If you can write the issue in English, we will be able to resolve it and release a new version of the plugin. |
@eslam-dev What I want to describe is the abnormality in the ability to replicate a site to other servers. This issue is caused by the use of imprecise matching rules in the 81-origin-site-sync.sh file during the extraction of user directories. |
@sunxiyuan
The code was tested on AWS and works correctly. Could you please provide me with the name of the server provider? |
@eslam-dev My /etc/passwd file contains the following two lines (note that the username in the second line contains the string
In this case, the original match specification will match both |
@sunxiyuan
|
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The replication should be executed correctly, but the target server prompts: SSH key not available in the origin server!
Additional context
This issue is caused by the use of imprecise matching rules in the 81 origin site sync. sh file during the extraction of user directories.
Specific code:
homedir=
grep $localuser /etc/passwd|cut -d':' -f6
The correct one should be:
homedir=$(grep '^root:' /etc/passwd | cut -d':' -f6)
Otherwise, it will match:
snapd-range-524288-root:x:524288:524288::/nonexistent:/usr/bin/false
The text was updated successfully, but these errors were encountered: