mirror of
				https://git.cloudron.io/cloudron/gitea-app
				synced 2025-11-04 00:52:35 +00:00 
			
		
		
		
	check for unset variable correctly
This commit is contained in:
		
							
								
								
									
										2
									
								
								start.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								start.sh
									
									
									
									
									
								
							@@ -23,7 +23,7 @@ setup_ldap_source() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# SSH_PORT can be unset to disable SSH
 | 
					# SSH_PORT can be unset to disable SSH
 | 
				
			||||||
disable_ssh="false"
 | 
					disable_ssh="false"
 | 
				
			||||||
if [[ -z "${SSH_PORT}" ]]; then
 | 
					if [[ -z "${SSH_PORT:-}" ]]; then
 | 
				
			||||||
    echo "SSH disabled"
 | 
					    echo "SSH disabled"
 | 
				
			||||||
    SSH_PORT=29418 # arbitrary port to keep sshd happy
 | 
					    SSH_PORT=29418 # arbitrary port to keep sshd happy
 | 
				
			||||||
    disable_ssh="false"
 | 
					    disable_ssh="false"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user