From 9ab34ee43aa0edba041e61f7e73132d67ccdc9d2 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 23 Jan 2017 12:57:29 -0800 Subject: [PATCH] Check for ubuntu version --- scripts/cloudron-setup | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/cloudron-setup b/scripts/cloudron-setup index 2b312939f..40e0cf734 100755 --- a/scripts/cloudron-setup +++ b/scripts/cloudron-setup @@ -7,6 +7,11 @@ if [[ ${EUID} -ne 0 ]]; then exit 1 fi +if [[ $(lsb_release -rs) != "16.04" ]]; then + echo "Cloudron requires Ubuntu 16.04" > /dev/stderr + exit 1 +fi + # change this to a hash when we make a upgrade release readonly LOG_FILE="/var/log/cloudron-setup.log" readonly MINIMUM_DISK_SIZE_GB="19" # this is the size of "/" and required to fit in docker images 19 is a safe bet for different reporting on 20GB min