Files
firezone/scripts/create_user.sh
Jamil Bou Kheir ded4d3dae3 checkpoint
2020-12-29 08:44:56 -08:00

15 lines
412 B
Bash
Executable File

#!/usr/bin/env bash
set -e
email="$(openssl rand -hex 2)@fireguard.local"
password="$(openssl rand -base64 12)"
/opt/fireguard/bin/fireguard eval "FgHttp.Users.create_user(
email: \"${email}\",
password: \"${password}\",
password_confirmation: \"${password}\"
)"
echo "FireGuard user created! Save this information becasue it will NOT be shown again."
echo "Email: ${email}"
echo "Password: ${password}"