correcting code that take debian version

This commit is contained in:
myvesta 2020-05-24 22:18:49 +02:00 committed by GitHub
parent 9cb73b19df
commit e21471b030
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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