INNER CODE UNIT · Shell

$ENDPOINT_CANDIDATE

IAmStoxe/wirehole · scripts/migrate-from-v1.sh:252

        if [[ $ENDPOINT_CANDIDATE =~ ^\[[^]]+\]:[0-9]+$ \
            || $ENDPOINT_CANDIDATE =~ ^[^:]+:[0-9]+$ ]]; then
            ENDPOINT="$ENDPOINT_CANDIDATE"
            return 0
        fi
    done
}

scan_endpoint_files < <(find config -type f -name '*.conf' -print0 2> /dev/null || true)
if [[ -z $ENDPOINT ]] && command -v sudo > /dev/null 2>&1; then
    # A legacy container may have written peer directories for PUID 1000 while
    # the host account has another UID. Retry discovery with the same access
    # that copy_directory will need later.
    scan_endpoint_files < <(sudo find config -type f -name '*.conf' -print0 2> /dev/null || true)
fi

ENDPOINT_HOST=""
ENDPOINT_PORT=""

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…