10 lines
199 B
Bash
Executable File
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 |