mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 02:28:03 -07:00
optimize version
Optimized the system that finds the version of the current running system.
This commit is contained in:
parent
b103640a0f
commit
48bc33ad87
1 changed files with 2 additions and 2 deletions
|
@ -14,8 +14,8 @@ VESTA='/usr/local/vesta'
|
|||
memory=$(grep 'MemTotal' /proc/meminfo |tr ' ' '\n' |grep [0-9])
|
||||
arch=$(uname -i)
|
||||
os='ubuntu'
|
||||
release="$(lsb_release -r|awk '{print $2}')"
|
||||
codename="$(lsb_release -c|awk '{print $2}')"
|
||||
release="$(lsb_release -s -r)"
|
||||
codename="$(lsb_release -s -c)"
|
||||
vestacp="http://$CHOST/$VERSION/$release"
|
||||
|
||||
if [ "$release" = '16.04' ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue