mirror of https://github.com/Aidaho12/haproxy-wi
parent
f94c2021a7
commit
87657806ab
|
@ -403,7 +403,7 @@ def service_actions_after_install(server_ips: str, service: str, json_data) -> N
|
||||||
sql.insert_or_update_service_setting(server_id, service, 'restart', '1')
|
sql.insert_or_update_service_setting(server_id, service, 'restart', '1')
|
||||||
|
|
||||||
|
|
||||||
def install_service(service: str, json_data: object) -> object:
|
def install_service(service: str, json_data: str) -> object:
|
||||||
try:
|
try:
|
||||||
json_data = json.loads(json_data)
|
json_data = json.loads(json_data)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
|
@ -416,7 +416,7 @@ function installServiceCluster(jsonData, service, progress_step) {
|
||||||
$('#server_creating_list').append('<li id="' + li_id + servers['cluster_id'] + '" class="server-creating proccessing">' + install_mess + ' ' + nice_service_name[service] + '</li>');
|
$('#server_creating_list').append('<li id="' + li_id + servers['cluster_id'] + '" class="server-creating proccessing">' + install_mess + ' ' + nice_service_name[service] + '</li>');
|
||||||
return $.ajax({
|
return $.ajax({
|
||||||
url: "/app/install/" + service,
|
url: "/app/install/" + service,
|
||||||
type: "PUT",
|
type: "POST",
|
||||||
statusCode: {
|
statusCode: {
|
||||||
500: function () {
|
500: function () {
|
||||||
showErrorStatus(nice_service_name[service], servers["name"], li_id, servers['cluster_id'], progress_step, something_wrong);
|
showErrorStatus(nice_service_name[service], servers["name"], li_id, servers['cluster_id'], progress_step, something_wrong);
|
||||||
|
|
Loading…
Reference in New Issue