mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -07:00
correcting code that take debian version
This commit is contained in:
parent
9cb73b19df
commit
e21471b030
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ source $VESTA/conf/vesta.conf
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
# Defining config host
|
# Defining config host
|
||||||
chost='c.vestacp.com'
|
chost='c.myvestacp.com'
|
||||||
|
|
||||||
# Detcing OS
|
# Detcing OS
|
||||||
case $(head -n1 /etc/issue |cut -f 1 -d ' ') in
|
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}')
|
release=$(lsb_release -r |awk '{print $2}')
|
||||||
fi
|
fi
|
||||||
if [ "$version" = 'debian' ]; then
|
if [ "$version" = 'debian' ]; then
|
||||||
release=$(cat /etc/issue|grep -o [0-9]|head -n1)
|
release=$(cat /etc/debian_version | tr "." "\n" | head -n1)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Defining download url
|
# Defining download url
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue