forked from indymedia/epicyon
Better check for the non-existance of an admin account
parent
e9ca3f3deb
commit
fa945479b5
|
@ -445,7 +445,7 @@ def createPerson(baseDir: str, nickname: str, domain: str, port: int,
|
|||
saveToFile,
|
||||
manualFollowerApproval,
|
||||
password)
|
||||
if noOfAccounts(baseDir) == 1:
|
||||
if not getConfigParam(baseDir, 'admin'):
|
||||
# print(nickname+' becomes the instance admin and a moderator')
|
||||
setConfigParam(baseDir, 'admin', nickname)
|
||||
setRole(baseDir, nickname, domain, 'instance', 'admin')
|
||||
|
|
Loading…
Reference in New Issue