mirror of https://gitlab.com/bashrc2/epicyon
Set admin status first
parent
22f31f0356
commit
e9ca3f3deb
|
@ -447,10 +447,10 @@ def createPerson(baseDir: str, nickname: str, domain: str, port: int,
|
||||||
password)
|
password)
|
||||||
if noOfAccounts(baseDir) == 1:
|
if noOfAccounts(baseDir) == 1:
|
||||||
# print(nickname+' becomes the instance admin and a moderator')
|
# print(nickname+' becomes the instance admin and a moderator')
|
||||||
|
setConfigParam(baseDir, 'admin', nickname)
|
||||||
setRole(baseDir, nickname, domain, 'instance', 'admin')
|
setRole(baseDir, nickname, domain, 'instance', 'admin')
|
||||||
setRole(baseDir, nickname, domain, 'instance', 'moderator')
|
setRole(baseDir, nickname, domain, 'instance', 'moderator')
|
||||||
setRole(baseDir, nickname, domain, 'instance', 'delegator')
|
setRole(baseDir, nickname, domain, 'instance', 'delegator')
|
||||||
setConfigParam(baseDir, 'admin', nickname)
|
|
||||||
|
|
||||||
if not os.path.isdir(baseDir + '/accounts'):
|
if not os.path.isdir(baseDir + '/accounts'):
|
||||||
os.mkdir(baseDir + '/accounts')
|
os.mkdir(baseDir + '/accounts')
|
||||||
|
|
Loading…
Reference in New Issue