mirror of
				https://github.com/neingeist/docker-mod-openssh-server-tweaks.git
				synced 2025-11-04 11:24:22 +01:00 
			
		
		
		
	✨ TWEAK_PROFILE_UMASK
This commit is contained in:
		
							parent
							
								
									9d7581e2ff
								
							
						
					
					
						commit
						a7f391466a
					
				
					 1 changed files with 8 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,9 @@
 | 
			
		|||
#!/usr/bin/with-contenv bash
 | 
			
		||||
echo "I am $0"
 | 
			
		||||
exit 0
 | 
			
		||||
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
 | 
			
		||||
 | 
			
		||||
echo "[openssh-server-tweaks] done"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue