Changelog: https://roxy-wi.org/changelog#6_3_2
pull/355/head v6.3.2.0
Pavel Loginov 2022-12-29 14:11:51 +03:00
parent 23b266dd0d
commit 6ec8df1ee5
2 changed files with 6 additions and 4 deletions

View File

@ -64,7 +64,6 @@ def upload_and_restart(server_ip: str, cfg: str, **kwargs):
file_format = 'conf'
config_path = kwargs.get('config_file_name')
config_date = get_date.return_date('config')
print(server_ip)
server_id = sql.select_server_id_by_ip(server_ip=server_ip)
if kwargs.get("nginx"):

View File

@ -39,9 +39,12 @@ def is_not_allowed_to_restart(server_id: int, service: str) -> None:
else:
is_restart = 0
if int(is_restart) == 1:
print('warning: this service is not allowed to be restarted')
return
try:
if int(is_restart) == 1:
print('warning: this service is not allowed to be restarted')
return
except Exception:
pass
def get_exp_version(server_ip: str, service_name: str) -> str: