From e21471b030fda8a49e773d9389b9631553fefc74 Mon Sep 17 00:00:00 2001 From: myvesta <38690722+myvesta@users.noreply.github.com> Date: Sun, 24 May 2020 22:18:49 +0200 Subject: [PATCH] correcting code that take debian version --- bin/v-update-web-templates | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/v-update-web-templates b/bin/v-update-web-templates index df882dd7..62daa141 100755 --- a/bin/v-update-web-templates +++ b/bin/v-update-web-templates @@ -22,7 +22,7 @@ source $VESTA/conf/vesta.conf #----------------------------------------------------------# # Defining config host -chost='c.vestacp.com' +chost='c.myvestacp.com' # Detcing OS case $(head -n1 /etc/issue |cut -f 1 -d ' ') in @@ -43,7 +43,7 @@ if [ "$version" = 'ubuntu' ]; then release=$(lsb_release -r |awk '{print $2}') fi if [ "$version" = 'debian' ]; then - release=$(cat /etc/issue|grep -o [0-9]|head -n1) + release=$(cat /etc/debian_version | tr "." "\n" | head -n1) fi # Defining download url