mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-05 09:39:22 -08:00
Script to add the first admin account
Script to add the first admin account to the servatrice database. Running this script after setting up a servatrice server will add the user account "servatrice" with the password of "password".
This commit is contained in:
3
servatrice/scripts/setup_addfirstadmin
Normal file
3
servatrice/scripts/setup_addfirstadmin
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
# SCRIPT TO ADD THE FIRST ADMIN USER NAMED SERVATRICE WITH THE PASSWORD OF PASSWORD
|
||||
mysql --defaults-file=./mysql.cnf -h localhost -e "insert into servatrice.cockatrice_users (admin,name,password_sha512,active) values (1,'servatrice','jbB4kSWDmjaVzMNdU13n73SpdBCJTCJ/JYm5ZBZvfxlzbISbXir+e/aSvMz86KzOoaBfidxO0s6GVd8t00qC0TNPl+udHfECaF7MsA==',1);"
|
||||
Reference in New Issue
Block a user