mirror of
				https://github.com/neingeist/docker-mod-openssh-server-tweaks.git
				synced 2025-11-04 11:24:22 +01:00 
			
		
		
		
	✨ TWEAK_USER_HOME
This commit is contained in:
		
							parent
							
								
									a7f391466a
								
							
						
					
					
						commit
						10ef3975d1
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -6,4 +6,9 @@ if [ -n "$TWEAK_PROFILE_UMASK" ]; then
 | 
			
		|||
    sed -i "s/^umask .*/umask $TWEAK_PROFILE_UMASK/" /etc/profile
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ -n "$TWEAK_USER_HOME" ]; then
 | 
			
		||||
    echo "Setting home of $USER_NAME to $TWEAK_USER_HOME"
 | 
			
		||||
    usermod --home "$TWEAK_USER_HOME" "$USER_NAME"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
echo "[openssh-server-tweaks] done"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue