You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-07-17 01:32:29 +02:00
Remove deprecated initdb script
This commit is contained in:
@ -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()
|
Reference in New Issue
Block a user