summaryrefslogtreecommitdiff
path: root/bin
diff options
authorPMR <pmr@pmr-lander>2020-08-21 16:32:04 +0000
committerPMR <pmr@pmr-lander>2020-08-21 16:32:04 +0000
commit668a440b6b98871a691cd077a24beb2a5d9314bd (patch)
tree60ff76f0643c5084c33a6f486b7cf6f52734a7e2 /bin
parentb6851153494fe721e1402a9c49ab2d6e1d1f164e (diff)
parent1f73f74e072c3ee9a003f3efa91569062b027af2 (diff)
Merge #389666 from ~bladernr/plainbox-provider-checkbox:1892525-update-maas-version-check
lp:1892525 - remove the version comparison in maas-version-check as it is no longer needed and was causing unnecessary failures.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/maas-version-check.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/maas-version-check.sh b/bin/maas-version-check.sh
index 6856354..25e233f 100755
--- a/bin/maas-version-check.sh
+++ b/bin/maas-version-check.sh
@@ -18,17 +18,14 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
MAAS_FILE="/etc/installed-by-maas"
-MIN_VERSION="2.0"
# Is the file there?
if [ -s $MAAS_FILE ]; then
maas_version=$(cat $MAAS_FILE)
echo "$maas_version"
+ exit 0
else
echo "ERROR: This system does not appear to have been installed by MAAS"
echo "ERROR: " "$(ls -l $MAAS_FILE 2>&1)"
exit 1
fi
-
-#is the version appropriate
-exit "$(dpkg --compare-versions "$maas_version" "ge" $MIN_VERSION)"