#!/bin/bash

# Traefik control LibrePortal tag replacements
# Now uses universal tag manager instead of sed operations
tagsProcessorTraefikControl()
{
    local full_file_path="$1"
    local public="$2"
    
    # Set Traefik enable based on public flag
    if [[ "$public" == "true" ]]; then
        tagsManagerUpdateUniversalTag "$full_file_path" "TRAEFIK_ENABLE_TAG" "true"
    else
        tagsManagerUpdateUniversalTag "$full_file_path" "TRAEFIK_ENABLE_TAG" "false"
    fi
}
