Bläddra i källkod

optimize version

Optimized the system that finds the version of the current running system.
Elliot Huffman 9 år sedan
förälder
incheckning
48bc33ad87
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      install/vst-install-ubuntu.sh

+ 2 - 2
install/vst-install-ubuntu.sh

@@ -14,8 +14,8 @@ VESTA='/usr/local/vesta'
 memory=$(grep 'MemTotal' /proc/meminfo |tr ' ' '\n' |grep [0-9])
 memory=$(grep 'MemTotal' /proc/meminfo |tr ' ' '\n' |grep [0-9])
 arch=$(uname -i)
 arch=$(uname -i)
 os='ubuntu'
 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"
 vestacp="http://$CHOST/$VERSION/$release"
 
 
 if [ "$release" = '16.04' ]; then
 if [ "$release" = '16.04' ]; then