mirror of
https://github.com/morpheus65535/bazarr
synced 2025-02-20 13:07:03 +00:00
WIP
This commit is contained in:
parent
51d9d6fb4f
commit
23229e205b
1 changed files with 9 additions and 0 deletions
|
@ -109,6 +109,15 @@ if settings.auth.type == 'form' and \
|
|||
os.remove(os.path.normpath(os.path.join(args.config_dir, 'config', 'register.json')))
|
||||
logging.info('BAZARR your login credentials have been migrated successfully and your password is now equal '
|
||||
'to your username. Please change it as soon as possible in settings.')
|
||||
else:
|
||||
if os.path.exists(os.path.normpath(os.path.join(args.config_dir, 'config', 'users.json'))):
|
||||
try:
|
||||
os.remove(os.path.normpath(os.path.join(args.config_dir, 'config', 'users.json')))
|
||||
os.remove(os.path.normpath(os.path.join(args.config_dir, 'config', 'roles.json')))
|
||||
os.remove(os.path.normpath(os.path.join(args.config_dir, 'config', 'register.json')))
|
||||
except:
|
||||
logging.error("BAZARR cannot delete those file. Please do it manually: users.json, roles.json, "
|
||||
"register.json")
|
||||
|
||||
|
||||
def init_binaries():
|
||||
|
|
Loading…
Reference in a new issue