#!/bin/bash

# LibrePortal tag processor

# Healthcheck LibrePortal tag replacements
# Now uses universal tag manager instead of sed operations
tagsProcessorHealthcheck()
{
    local full_file_path="$1"
    local healthcheck="$2"
    
    # Healthcheck updater with universal tag manager
    if [[ "$healthcheck" == "false" ]]; then  
        tagsManagerUpdateUniversalTag "$full_file_path" "HEALTHCHECK_TAG" "true"
    elif [[ "$healthcheck" == "true" ]]; then
        tagsManagerUpdateUniversalTag "$full_file_path" "HEALTHCHECK_TAG" "false"
    fi
}
