Pavel Loginov 3 years ago
parent 3b60d556b4
commit b1865fd78c

@ -859,7 +859,7 @@ def update_db_v_5_3_2_2(**kwargs):
def update_db_v_5_4_0(**kwargs):
query = Setting.update(value='/etc/nginx/').where(Setting.param == 'nginx_dir')
query = Setting.update(value='/etc/nginx/conf.d').where(Setting.param == 'nginx_dir')
try:
query.execute()
except Exception as e:

@ -1790,7 +1790,7 @@ if form.getvalue('get_nginx_v'):
container_name = sql.get_setting('nginx_container_name')
cmd = ["docker exec -it "+container_name+" /usr/sbin/nginx -v 2>&1|awk '{print $3}'"]
else:
cmd = ['/usr/sbin/nginx1 -v']
cmd = ['/usr/sbin/nginx -v']
print(funct.ssh_command(serv, cmd))
if form.getvalue('get_keepalived_v'):

Loading…
Cancel
Save