mirror of
				https://github.com/samply/bridgehead.git
				synced 2025-11-04 07:10:18 +01:00 
			
		
		
		
	Issue a warning (but don't crash) on missing MONITOR_APIKEY
This commit is contained in:
		@@ -24,8 +24,8 @@ function hc_send(){
 | 
				
			|||||||
        HCURL="https://hc-ping.com/$HCUUID"
 | 
					        HCURL="https://hc-ping.com/$HCUUID"
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
    if [ ! -n "$HCURL" ]; then
 | 
					    if [ ! -n "$HCURL" ]; then
 | 
				
			||||||
        log WARN "Healthcheck reporting failed: Neither Healthcheck UUID nor service set - please check config in /etc/bridgehead"
 | 
					        log WARN "Did not report Healthcheck: Neither Healthcheck UUID nor service set. Please define MONITOR_APIKEY in /etc/bridgehead."
 | 
				
			||||||
        return 1
 | 
					        return 0
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if [ -z "$UPTIME" ]; then
 | 
					    if [ -z "$UPTIME" ]; then
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user