create admin account #7
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For creating the initial admin account, the database needs to be edited, see https://github.com/haiwen/seafile-server/blob/v8.0.2-server/scripts/setup-seafile-mysql.py#L528 :
sql = '''REPLACE INTO EmailUser(email, passwd, is_staff, is_active, ctime) VALUES ('%s', '%s', 1, 1, 0)''' % (seahub_config.admin_email, seahub_config.hashed_admin_password())
where hashed_admin_password currently returns the SHA1 password hash (unsalted).
There are 2 options on how to do that:
decision:
adminPasswordSHA1File
, read during pre-start script