mirror of
				https://github.com/neingeist/docker-mod-openssh-server-tweaks.git
				synced 2025-11-04 03:14:24 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			419 B
		
	
	
	
		
			Text
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			419 B
		
	
	
	
		
			Text
		
	
	
		
			Executable file
		
	
	
	
	
#!/usr/bin/with-contenv bash
 | 
						|
echo "[openssh-server-tweaks] started"
 | 
						|
 | 
						|
if [ -n "$TWEAK_PROFILE_UMASK" ]; then
 | 
						|
    echo "Setting profile umask to $TWEAK_PROFILE_UMASK"
 | 
						|
    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"
 |