mirror of
				https://github.com/zokradonh/kopano-docker
				synced 2025-10-31 10:27:14 +00:00 
			
		
		
		
	smaller cleanups
Signed-off-by: Felix Bartels <felix@host-consultants.de>
This commit is contained in:
		
							parent
							
								
									1785ccf7a3
								
							
						
					
					
						commit
						faeaf75183
					
				
							
								
								
									
										13
									
								
								setup.sh
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								setup.sh
									
									
									
									
									
								
							| @ -16,7 +16,7 @@ if [ ! -e ./docker-compose.yml ]; then | |||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| if [ ! -e ./.env ]; then | if [ ! -e ./.env ]; then | ||||||
|     PRINT_SETUP_SUCCESS="" | 	PRINT_SETUP_SUCCESS="" | ||||||
| 
 | 
 | ||||||
| 	echo "Creating an .env file for you" | 	echo "Creating an .env file for you" | ||||||
| 	value_default=latest | 	value_default=latest | ||||||
| @ -49,14 +49,14 @@ if [ ! -e ./.env ]; then | |||||||
| 	LDAP_SERVER=${new_value:-$value_default} | 	LDAP_SERVER=${new_value:-$value_default} | ||||||
| 
 | 
 | ||||||
| 	if [ "$LDAP_SERVER" != "$value_default" ]; then | 	if [ "$LDAP_SERVER" != "$value_default" ]; then | ||||||
| 	    # We don't need an admin password in case we don't use the bundled LDAP server | 		# We don't need an admin password in case we don't use the bundled LDAP server | ||||||
| 	    LDAP_ADMIN_PASSWORD="" | 		LDAP_ADMIN_PASSWORD="" | ||||||
| 
 | 
 | ||||||
| 		value_default="$LDAP_BASE_DN" | 		value_default="$LDAP_BASE_DN" | ||||||
| 		read -p "LDAP search base [$value_default]: " new_value | 		read -p "LDAP search base [$value_default]: " new_value | ||||||
| 		LDAP_SEARCH_BASE=${new_value:-$value_default} | 		LDAP_SEARCH_BASE=${new_value:-$value_default} | ||||||
| 
 | 
 | ||||||
| 		value_default="CN=readonly,$LDAP_BASE_DN" | 		value_default="cn=readonly,$LDAP_BASE_DN" | ||||||
| 		read -p "LDAP bind user (needs read permissions) [$value_default]: " new_value | 		read -p "LDAP bind user (needs read permissions) [$value_default]: " new_value | ||||||
| 		LDAP_BIND_DN=${new_value:-$value_default} | 		LDAP_BIND_DN=${new_value:-$value_default} | ||||||
| 
 | 
 | ||||||
| @ -68,7 +68,7 @@ if [ ! -e ./.env ]; then | |||||||
| 	else | 	else | ||||||
| 		LDAP_ADMIN_PASSWORD=$(random_string) | 		LDAP_ADMIN_PASSWORD=$(random_string) | ||||||
| 		LDAP_SEARCH_BASE="$LDAP_BASE_DN" | 		LDAP_SEARCH_BASE="$LDAP_BASE_DN" | ||||||
| 		LDAP_BIND_DN="CN=readonly,$LDAP_BASE_DN" | 		LDAP_BIND_DN="cn=readonly,$LDAP_BASE_DN" | ||||||
| 		LDAP_BIND_PW=$(random_string) | 		LDAP_BIND_PW=$(random_string) | ||||||
| 	fi | 	fi | ||||||
| 
 | 
 | ||||||
| @ -178,6 +178,3 @@ else | |||||||
| 	echo "config already exists, doing nothing" | 	echo "config already exists, doing nothing" | ||||||
| 	echo "if you want to change the configuration, please edit .env directly" | 	echo "if you want to change the configuration, please edit .env directly" | ||||||
| fi | fi | ||||||
| 
 |  | ||||||
| # build the local docker containers. This has the benefit that it will warn about empty variables |  | ||||||
| #docker-compose build |  | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user