mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix error where user could not create server
Fix error where user could not create support files
This commit is contained in:
@ -162,7 +162,11 @@ class Controller:
|
||||
#we'll iterate through our list of log paths from auth servers.
|
||||
for server in auth_servers:
|
||||
final_path = os.path.join(server_path, str(server['server_name']))
|
||||
os.mkdir(final_path)
|
||||
try:
|
||||
os.mkdir(final_path)
|
||||
except FileExistsError:
|
||||
final_path += '_'+server['server_uuid']
|
||||
os.mkdir(final_path)
|
||||
try:
|
||||
file_helper.copy_file(server['log_path'], final_path)
|
||||
except Exception as e:
|
||||
|
Reference in New Issue
Block a user