u
This commit is contained in:
		
							parent
							
								
									ea5a08a72b
								
							
						
					
					
						commit
						41d70fc8dd
					
				| @ -18,7 +18,7 @@ echo | |||||||
| 
 | 
 | ||||||
| echo "=== Making dir /faronear/fon" | echo "=== Making dir /faronear/fon" | ||||||
| mkdir -p /faronear/fon | mkdir -p /faronear/fon | ||||||
| chmod 755 /faronear | chmod 755 /faronear # 确保其他用户能够读取 /faronear/fon/nixhome/* | ||||||
| echo | echo | ||||||
| 
 | 
 | ||||||
| echo "=== Git cloning to /faronear/fon/sysconfig" | echo "=== Git cloning to /faronear/fon/sysconfig" | ||||||
|  | |||||||
| @ -89,6 +89,7 @@ then | |||||||
|     then |     then | ||||||
|       echo "--- Linking $SourcePath/authorized_keys to $HomePath/.ssh/authorized_keys ..." |       echo "--- Linking $SourcePath/authorized_keys to $HomePath/.ssh/authorized_keys ..." | ||||||
|       ln -s $SourcePath/.ssh/authorized_keys $HomePath/.ssh/authorized_keys |       ln -s $SourcePath/.ssh/authorized_keys $HomePath/.ssh/authorized_keys | ||||||
|  |       sudo chmod 644 $HomePath/.ssh/authorized_keys # 确保其他用户能读取 nixhome/.ssh/authorized_keys | ||||||
|     elif [ "$CopyOrLinkOrOmitAuthorizedKeys" = 'a' ] |     elif [ "$CopyOrLinkOrOmitAuthorizedKeys" = 'a' ] | ||||||
|     then |     then | ||||||
|       echo "--- Copying $SourcePath/authorized_keys to $HomePath/.ssh/authorized_keys ..." |       echo "--- Copying $SourcePath/authorized_keys to $HomePath/.ssh/authorized_keys ..." | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user