Files
container-stack/commands/secret.sh
2026-02-03 22:20:03 -03:00

10 lines
199 B
Bash
Executable File

#! /bin/bash
if [[ -f "secret" ]]; then
echo "Found a SECRET! Shhhhh..." >&2
SECRET=$(<secret)
else
echo "Creating New SECRET! Shhhhh..." >&2
openssl rand -hex 32 >./secret
SECRET=$(<secret)
fi