10 lines
347 B
Bash
10 lines
347 B
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
|