瀏覽代碼

[Install] Ubuntu 16.04 with default kernel is also unsupported in gen_conf

andryyy 5 年之前
父節點
當前提交
af8ed1d33a
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      generate_config.sh

+ 8 - 0
generate_config.sh

@@ -8,6 +8,14 @@ if [[ "$(uname -r)" =~ ^4\.15\.0-60 ]]; then
   exit 1
 fi
 
+if [[ "$(uname -r)" =~ ^4\.4\. ]]; then
+  if grep -q Ubuntu <<< $(uname -a); then
+    echo "DO NOT RUN mailcow ON THIS UBUNTU KERNEL!";
+    echo "Please update to linux-generic-hwe-16.04 by running \"apt-get install --install-recommends linux-generic-hwe-16.04\""
+  fi
+  exit 1
+fi
+
 if grep --help 2>&1 | grep -q -i "busybox"; then
   echo "BusybBox grep detected, please install gnu grep, \"apk add --no-cache --upgrade grep\""
   exit 1