#!/usr/bin/env bash
set -Eeuo pipefail
f="/var/lib/nice-monitoring/credentials/initial-admin.txt"
if [[ "$(id -u)" -ne 0 ]]; then
    echo "Run as root." >&2
    exit 1
fi
if [[ ! -r "$f" ]]; then
    echo "Initial credentials are not available." >&2
    exit 1
fi
cat "$f"
