mirror of
				https://github.com/bashclub/zamba-lxc-toolbox.git
				synced 2025-11-04 08:02:28 +01:00 
			
		
		
		
	functions: ignore stderr when generating password
This commit is contained in:
		@@ -5,5 +5,5 @@ LXC_RANDOMPWD=32
 | 
			
		||||
 | 
			
		||||
random_password() {
 | 
			
		||||
    set +o pipefail
 | 
			
		||||
    C_CTYPE=C tr -dc 'a-zA-Z0-9' < /dev/urandom | head -c${LXC_RANDOMPWD}
 | 
			
		||||
    C_CTYPE=C tr -dc 'a-zA-Z0-9' < /dev/urandom 2>/dev/null | head -c${LXC_RANDOMPWD}
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user