瀏覽代碼

[Update] Update update.sh ...

andryyy 5 年之前
父節點
當前提交
a8a1e779d9
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      update.sh

+ 4 - 2
update.sh

@@ -14,10 +14,12 @@ fi
 
 if [[ "$(uname -r)" =~ ^4\.4\. ]]; then
   if grep -q Ubuntu <<< $(uname -a); then
-    echo "DO NOT RUN mailcow ON THIS UBUNTU KERNEL!";
+    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\""
+    exit 1
   fi
-  exit 1
+  echo "mailcow on a 4.4.x kernel is not supported. It may or may not work, please upgrade your kernel or continue at your own risk."
+  read -p "Press any key to continue..." < /dev/tty
 fi
 
 # Exit on error and pipefail