mirror of
				https://github.com/zulip/docker-zulip.git
				synced 2025-10-31 12:03:34 +00:00 
			
		
		
		
	Added check if we need to sed or echo add it
This commit is contained in:
		| @@ -142,7 +142,7 @@ EOF | ||||
|       continue | ||||
|     fi | ||||
|     echo "Setting secret \"$SECRET_KEY\"." | ||||
|     if $(grep "$SECRET_KEY" "$ZULIP_SECRETS"); then | ||||
|     if [ -z "$(grep "$SECRET_KEY" "$ZULIP_SECRETS")" ]; then | ||||
|       sed -i "s~#?${SECRET_KEY}[ ]*=[ ]*['\"]+.*['\"]+$~${SECRET_KEY} = '${SECRET_VAR}'~g" "$ZULIP_SECRETS" | ||||
|       continue | ||||
|     fi | ||||
|   | ||||
		Reference in New Issue
	
	Block a user