Remove deprecated initdb script

master
Pierre Jaury 9 years ago
parent cca6eee8db
commit fa30a71e66

@ -1,18 +0,0 @@
from freeposte.admin import db, models
from passlib import hash
# Initialize the database
db.create_all()
domain = models.Domain(name="example.com")
user = models.User(
localpart="admin",
domain=domain,
global_admin=True,
password=hash.sha512_crypt.encrypt("admin")
)
db.session.add(domain)
db.session.add(user)
db.session.commit()
Loading…
Cancel
Save