Set admin status first

merge-requests/8/head
Bob Mottram 2020-10-10 17:14:49 +01:00
parent 22f31f0356
commit e9ca3f3deb
1 changed files with 1 additions and 1 deletions

View File

@ -447,10 +447,10 @@ def createPerson(baseDir: str, nickname: str, domain: str, port: int,
password)
if noOfAccounts(baseDir) == 1:
# print(nickname+' becomes the instance admin and a moderator')
setConfigParam(baseDir, 'admin', nickname)
setRole(baseDir, nickname, domain, 'instance', 'admin')
setRole(baseDir, nickname, domain, 'instance', 'moderator')
setRole(baseDir, nickname, domain, 'instance', 'delegator')
setConfigParam(baseDir, 'admin', nickname)
if not os.path.isdir(baseDir + '/accounts'):
os.mkdir(baseDir + '/accounts')