1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-02-20 13:07:03 +00:00
This commit is contained in:
Louis Vézina 2020-05-20 15:09:39 -04:00
parent 51d9d6fb4f
commit 23229e205b

View file

@ -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():