mirror of
				https://github.com/zokradonh/kopano-docker
				synced 2025-10-31 10:27:14 +00:00 
			
		
		
		
	Move ecparam and eckey generation into guest mode if (#291)
move waiting for ecparam and eckey into the allow guest mode if as this is only required for the guest mode
This commit is contained in:
		
							parent
							
								
									3165430f72
								
							
						
					
					
						commit
						0130c9829f
					
				| @ -9,6 +9,8 @@ if [ $# -gt 0 ]; then | |||||||
| 	exit | 	exit | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
|  | if [ "${allow_client_guests:-}" = "yes" ]; then | ||||||
|  | 	# TODO this should be simplified so that ecparam and eckey are only required if the is no jwk-meet.json yet | ||||||
| 	dockerize \ | 	dockerize \ | ||||||
| 		-wait file://"${ecparam:?}" \ | 		-wait file://"${ecparam:?}" \ | ||||||
| 		-wait file://"${eckey:?}" \ | 		-wait file://"${eckey:?}" \ | ||||||
| @ -21,11 +23,10 @@ if [ ! -s "$ecparam" ]; then | |||||||
| 	fi | 	fi | ||||||
| 
 | 
 | ||||||
| 	if [ ! -s "$eckey" ]; then | 	if [ ! -s "$eckey" ]; then | ||||||
| 	echo "Creating ec key for Meet..." | 		echo "Creating ec private key for Meet..." | ||||||
| 		openssl ec -in "$ecparam" -out "$eckey" >/dev/null 2>&1 | 		openssl ec -in "$ecparam" -out "$eckey" >/dev/null 2>&1 | ||||||
| 	fi | 	fi | ||||||
| 
 | 
 | ||||||
| if [ "${allow_client_guests:-}" = "yes" ]; then |  | ||||||
| 	echo "Patching identifier registration for use of the Meet guest mode" | 	echo "Patching identifier registration for use of the Meet guest mode" | ||||||
| 	/usr/local/bin/konnectd utils jwk-from-pem --use sig "$eckey" > /tmp/jwk-meet.json | 	/usr/local/bin/konnectd utils jwk-from-pem --use sig "$eckey" > /tmp/jwk-meet.json | ||||||
| 	CONFIG_JSON=/etc/kopano/konnectd-identifier-registration.yaml | 	CONFIG_JSON=/etc/kopano/konnectd-identifier-registration.yaml | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user