mirror of
				https://gitee.com/gfdgd-xi/deep-wine-runner
				synced 2025-11-04 15:32:23 +08:00 
			
		
		
		
	新增新建home目录功能
This commit is contained in:
		
							parent
							
								
									0fe546fe86
								
							
						
					
					
						commit
						b693f9c065
					
				
							
								
								
									
										2
									
								
								Mount.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Mount.sh
									
									
									
									
									
								
							@ -34,6 +34,8 @@ mount -o bind /usr/share/fonts ./usr/share/fonts
 | 
			
		||||
if [ ! -d "home/$2" ]; then
 | 
			
		||||
    # 新建用户,且密码为 123456,以便读写
 | 
			
		||||
    "$programPath/pardus-chroot" . bash /opt/apps/deepin-wine-runner/ChangePassword.sh "$2"
 | 
			
		||||
    mkdir -p "home/$2"
 | 
			
		||||
    chmod 777 -Rv "home/$2" 
 | 
			
		||||
fi
 | 
			
		||||
# 挂载用户目录到 /root(默认 $HOME 路径)
 | 
			
		||||
if [[ $2 == "root" ]]; then
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user