Ver código fonte

Merge pull request #998 from elliot-labs/patch-2

Optimize Version Retrieval (Ubuntu)
Made I.T 9 anos atrás
pai
commit
d9095aecdf
1 arquivos alterados com 2 adições e 2 exclusões
  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