11 lines
364 B
Bash
Executable file
11 lines
364 B
Bash
Executable file
#!/usr/bin/bash
|
|
|
|
password_hash="$(echo -n "root" | argon2 salt_06cGGWYDJCZ -e)"
|
|
echo $password_hash
|
|
SQL=$(cat <<EOF
|
|
INSERT INTO users
|
|
(id, handle, email, roles, status, password_hash, created_at)
|
|
VALUES
|
|
('$(uuid)', 'root', 'root@example.org', '[]', 'Active', '$password_hash', '2024-11-30T00:00:00Z');
|
|
EOF)
|
|
echo $SQL | sqlite3 $DB_PATH
|