mirror of
				https://github.com/zokradonh/kopano-docker
				synced 2025-10-31 02:17:47 +00:00 
			
		
		
		
	core-start-service: make the grapi ldap-backend usable (#227)
* core-start-service: make the grapi ldap-backend usable * fix startup script for kopano grapi backend
This commit is contained in:
		
							parent
							
								
									1c4b520b53
								
							
						
					
					
						commit
						db63ee39cb
					
				| @ -16,7 +16,8 @@ ENV \ | |||||||
|     KOPANO_CORE_REPOSITORY_URL=$KOPANO_CORE_REPOSITORY_URL \ |     KOPANO_CORE_REPOSITORY_URL=$KOPANO_CORE_REPOSITORY_URL \ | ||||||
|     KOPANO_CORE_VERSION=$KOPANO_CORE_VERSION \ |     KOPANO_CORE_VERSION=$KOPANO_CORE_VERSION \ | ||||||
|     KOPANO_REPOSITORY_FLAGS=$KOPANO_REPOSITORY_FLAGS \ |     KOPANO_REPOSITORY_FLAGS=$KOPANO_REPOSITORY_FLAGS \ | ||||||
|     RELEASE_KEY_DOWNLOAD=$RELEASE_KEY_DOWNLOAD |     RELEASE_KEY_DOWNLOAD=$RELEASE_KEY_DOWNLOAD \ | ||||||
|  |     GRAPI_BACKEND="kopano" | ||||||
| 
 | 
 | ||||||
| LABEL maintainer=az@zok.xyz \ | LABEL maintainer=az@zok.xyz \ | ||||||
|     org.label-schema.name="Kopano core container" \ |     org.label-schema.name="Kopano core container" \ | ||||||
|  | |||||||
| @ -84,9 +84,19 @@ grapi) | |||||||
| 	export socket_path=/var/run/kopano/grapi | 	export socket_path=/var/run/kopano/grapi | ||||||
| 	mkdir -p "$socket_path" | 	mkdir -p "$socket_path" | ||||||
| 	chown -R kapi:kopano "$socket_path" | 	chown -R kapi:kopano "$socket_path" | ||||||
|  | 	# TODO there could be a case where multiple backends are desired | ||||||
|  | 	case $GRAPI_BACKEND in | ||||||
|  | 	ldap) | ||||||
|  | 		export LDAP_URI="${KCCONF_GRAPI_LDAP_URI}" | ||||||
|  | 		export LDAP_BASEDN="${KCCONF_GRAPI_LDAP_BASEDN}" | ||||||
|  | 		export LDAP_BINDDN="${KCCONF_GRAPI_LDAP_BINDDN}" | ||||||
|  | 		bindpw="$(cat "${KCCONF_GRAPI_LDAP_BINDPW_FILE}")" | ||||||
|  | 		export LDAP_BINDPW="${bindpw}" | ||||||
|  | 		;; | ||||||
|  | 	esac | ||||||
| 	# cleaning up env variables | 	# cleaning up env variables | ||||||
| 	unset "${!KCCONF_@}" | 	unset "${!KCCONF_@}" | ||||||
| 	exec kopano-grapi serve | 	exec kopano-grapi serve --backend="$GRAPI_BACKEND" | ||||||
| 	;; | 	;; | ||||||
| kapi) | kapi) | ||||||
| 	if [ "$KCCONF_KAPID_INSECURE" = "yes" ]; then | 	if [ "$KCCONF_KAPID_INSECURE" = "yes" ]; then | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user