mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-07-30 17:23:45 +00:00
Fixes issue ngoduykhanh/PowerDNS-Admin#11.
This change populates the 'role' and 'setting' tables to their initial states via the create_db.py script which removes a step from the initial setup. We now also search for roles instead of expecting them to be at certain IDs.
This commit is contained in:
15
README.md
15
README.md
@@ -58,21 +58,6 @@ Create database after having proper configs
|
||||
(flask)% ./createdb.py
|
||||
```
|
||||
|
||||
Manually add some data into our `powerdnsadmin` database
|
||||
```
|
||||
$ mysql
|
||||
|
||||
MariaDB [(none)]> use powerdnsadmin;
|
||||
|
||||
MariaDB [powerdnsadmin]> INSERT INTO role(name, description) VALUES ('Administrator', 'Administrator');
|
||||
Query OK, 1 row affected (0.00 sec)
|
||||
|
||||
MariaDB [powerdnsadmin]> INSERT INTO role(name, description) VALUES ('User', 'User');
|
||||
Query OK, 1 row affected (0.01 sec)
|
||||
|
||||
MariaDB [powerdnsadmin]> INSERT INTO setting(name, value) VALUES('maintenance', 'False');
|
||||
Query OK, 1 row affected (0.00 sec)
|
||||
```
|
||||
|
||||
Run the application and enjoy!
|
||||
```
|
||||
|
Reference in New Issue
Block a user