-
-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
- Go to '复制到服务器'
- Click on '开始复制'
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
Metadata
Metadata
Assignees
Labels
No labels