Skip to content

Commit

Permalink
Merge branch 'selfconfig-admin-email'
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbs committed Apr 27, 2024
2 parents bb4c5fa + c53d4fa commit 225e966
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bootstrap/selfconfig-root
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,11 @@ run_sh('mysql mod < ~pause/pause/doc/mod.schema.txt');
run_cmd(qw(mysqladmin CREATE authen_pause));
run_sh('mysql -u root authen_pause < ~pause/pause/doc/authen_pause.schema.txt');

run_cmd(qw(mysql mod -e), "INSERT INTO users (userid) VALUES ('$admin_user')");
my $admin_email = "$admin_user\@example.com";
run_cmd(
qw(mysql mod -e),
"INSERT INTO users (userid, email) VALUES ('$admin_user', '$admin_email')",
);

my $crypted_pass = crypt $admin_pass, chr(rand(26)+97) . chr(rand(26)+97);

Expand Down

0 comments on commit 225e966

Please sign in to comment.