mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-03-21 18:41:38 +00:00
15 lines
412 B
Bash
Executable File
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}"
|