mirror of
				https://github.com/hiskang/acme.sh
				synced 2025-11-04 12:28:12 +00:00 
			
		
		
		
	fix for existing record
This commit is contained in:
		
							parent
							
								
									a4fc802d1b
								
							
						
					
					
						commit
						03140865f0
					
				@ -36,7 +36,7 @@ dns_selectel_add() {
 | 
			
		||||
 | 
			
		||||
  _info "Adding record"
 | 
			
		||||
  if _sl_rest POST "/$_domain_id/records/" "{\"type\": \"TXT\", \"ttl\": 60, \"name\": \"$fulldomain\", \"content\": \"$txtvalue\"}"; then
 | 
			
		||||
    if _contains "$response" "$txtvalue"; then
 | 
			
		||||
    if _contains "$response" "$txtvalue" || _contains "$response" "record_already_exists"; then
 | 
			
		||||
      _info "Added, OK"
 | 
			
		||||
      return 0
 | 
			
		||||
    fi
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user