瀏覽代碼

Ubuntu kernel 4.15.0-60-generic seems to be broken with Docker and --dns flags, do NOT use it!

andryyy 6 年之前
父節點
當前提交
3cae2389a0
共有 2 個文件被更改,包括 12 次插入0 次删除
  1. 6 0
      generate_config.sh
  2. 6 0
      update.sh

+ 6 - 0
generate_config.sh

@@ -2,6 +2,12 @@
 
 set -o pipefail
 
+if [[ "$(uname -r)" =~ ^4\.15\.0-60 ]]; then
+  echo "DO NOT RUN mailcow ON THIS UBUNTU KERNEL!";
+  echo "Please update to 5.x or use another distribution."
+  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

+ 6 - 0
update.sh

@@ -6,6 +6,12 @@ if [ "$(id -u)" -ne "0" ]; then
   exit 1
 fi
 
+if [[ "$(uname -r)" =~ ^4\.15\.0-60 ]]; then
+  echo "DO NOT RUN mailcow ON THIS UBUNTU KERNEL!";
+  echo "Please update to 5.x or use another distribution."
+  exit 1
+fi
+
 # Exit on error and pipefail
 set -o pipefail