mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Add feature where if server executable is changed in config it also changes the execution string to match.
This commit is contained in:
parent
b6a4698486
commit
db4812c8ea
@ -647,6 +647,12 @@ class PanelHandler(BaseHandler):
|
||||
return
|
||||
|
||||
server_obj = self.controller.servers.get_server_obj(server_id)
|
||||
server_settings = self.controller.get_server_data(server_id)
|
||||
stale_executable = server_obj.executable
|
||||
#Compares old jar name to page data being passed. If they are different we replace the executable name in the execution string.
|
||||
if str(stale_executable) != str(executable):
|
||||
execution_command = execution_command.replace(str(stale_executable), str(executable))
|
||||
|
||||
server_obj.server_name = server_name
|
||||
server_obj.path = server_path
|
||||
server_obj.log_path = log_path
|
||||
|
Loading…
Reference in New Issue
Block a user