Pavel Loginov 2 years ago
parent 826f676a77
commit b4f1e342e6

@ -978,9 +978,6 @@ def update_db_v_6_1_4():
continue continue
if service.slug != 'haproxy' and setting == 'haproxy_enterprise': if service.slug != 'haproxy' and setting == 'haproxy_enterprise':
continue continue
if setting == 'restart':
set_value = 1
else:
set_value = 0 set_value = 0
try: try:
ServiceSetting.insert( ServiceSetting.insert(

@ -4409,7 +4409,7 @@ if form.getvalue('serverSettingsSave') is not None:
else: else:
funct.logging(server_ip, 'Service has been flagged as a system service', haproxywi=1, login=1, funct.logging(server_ip, 'Service has been flagged as a system service', haproxywi=1, login=1,
keep_history=1, service=service) keep_history=1, service=service)
if sql.insert_or_update_service_setting(server_id, service, 'restart', nginx_dockerized): if sql.insert_or_update_service_setting(server_id, service, 'restart', nginx_restart):
print('Ok') print('Ok')
if nginx_restart == '1': if nginx_restart == '1':
funct.logging(server_ip, 'Restart option is disabled for this service', haproxywi=1, login=1, funct.logging(server_ip, 'Restart option is disabled for this service', haproxywi=1, login=1,
@ -4427,7 +4427,7 @@ if form.getvalue('serverSettingsSave') is not None:
else: else:
funct.logging(server_ip, 'Service has been flagged as a system service', haproxywi=1, login=1, funct.logging(server_ip, 'Service has been flagged as a system service', haproxywi=1, login=1,
keep_history=1, service=service) keep_history=1, service=service)
if sql.insert_or_update_service_setting(server_id, service, 'restart', nginx_dockerized): if sql.insert_or_update_service_setting(server_id, service, 'restart', apache_restart):
print('Ok') print('Ok')
if apache_restart == '1': if apache_restart == '1':
funct.logging(server_ip, 'Restart option is disabled for this service', haproxywi=1, login=1, funct.logging(server_ip, 'Restart option is disabled for this service', haproxywi=1, login=1,

@ -12,3 +12,4 @@ peewee>=3.14.10
PyMySQL>=1.0.2 PyMySQL>=1.0.2
distro>=1.2.0 distro>=1.2.0
bottle>=0.12.18 bottle>=0.12.18
psutil>=5.9.1

Loading…
Cancel
Save