summaryrefslogtreecommitdiff
path: root/scripts/install/install-functions
diff options
context:
space:
mode:
authorKim Hagen <kim.sidney@gmail.com>2016-01-29 05:56:40 -0500
committerKim Hagen <kim.sidney@gmail.com>2016-01-29 05:56:40 -0500
commit79bffc87c0b0a4b6b35a190fa64adc34e5ff8005 (patch)
tree49eb3e3b083e6694e02c76ebae3bb31821ba6457 /scripts/install/install-functions
parent13cf05ad949e8e622613b59084a39a776110fa99 (diff)
downloadvyatta-cfg-system-79bffc87c0b0a4b6b35a190fa64adc34e5ff8005.tar.gz
vyatta-cfg-system-79bffc87c0b0a4b6b35a190fa64adc34e5ff8005.zip
Update the way the install scrips get the vyos version.
Diffstat (limited to 'scripts/install/install-functions')
-rwxr-xr-xscripts/install/install-functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/install/install-functions b/scripts/install/install-functions
index 8f30f8db..0a1f5d13 100755
--- a/scripts/install/install-functions
+++ b/scripts/install/install-functions
@@ -298,7 +298,7 @@ is_union_install ()
# outputs the version string of the current running version.
get_cur_version ()
{
- ver=`dpkg-query --showformat='${Version}' --show vyatta-version`
+ ver=`cat /opt/vyatta/etc/version`
if [ -z "$ver" ]; then
echo "UNKNOWN"
else
@@ -323,7 +323,7 @@ get_new_version ()
ver_file=${ver_path}
if is_live_cd_boot && [ -f "$ver_file" ]; then
# we are installing from a live CD boot
- ver=`dpkg-query --showformat='${Version}' --show vyatta-version`
+ ver=`cat /opt/vyatta/etc/version`
echo $ver
return
fi