diff options
author | Daniel Hansson <daniel@techandme.se> | 2017-06-08 21:42:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-08 21:42:25 +0300 |
commit | 2eae4709447160c9867f3ce173e50e60069160d7 (patch) | |
tree | 6750ab93be6a7bf22a5316b187dde36938ae87d0 /nextcloud_install_production.sh | |
parent | c1387b72e38eb091e2a69da0307fab5e9e97d1f2 (diff) |
Choose between 4.4 and 4.8 (#254)
Diffstat (limited to 'nextcloud_install_production.sh')
-rw-r--r-- | nextcloud_install_production.sh | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/nextcloud_install_production.sh b/nextcloud_install_production.sh index cdc684e2..02cd090d 100644 --- a/nextcloud_install_production.sh +++ b/nextcloud_install_production.sh @@ -456,12 +456,25 @@ apt autoremove -y apt autoclean find /root "/home/$UNIXUSER" -type f \( -name '*.sh*' -o -name '*.html*' -o -name '*.tar*' -o -name '*.zip*' \) -delete -# Install virtual kernels for Hyper-V, and extra for UTF8 kernel module + Collabora -apt-get install --install-recommends -y \ -linux-virtual-lts-xenial \ -linux-tools-virtual-lts-xenial \ -linux-cloud-tools-virtual-lts-xenial \ -linux-image-extra-"$(uname -r)" +# Install virtual kernels for Hyper-V, and extra for UTF8 kernel module + Collabora and OnlyOffice +if [[ "no" == $(ask_yes_or_no "Is this installed on Hyper-V? (4.4 or 4.8 kernel)") ]] +then + # Kernel 4.8 + apt install --install-recommends -y \ + linux-virtual-hwe-16.04 \ + linux-tools-virtual-hwe-16.04 \ + linux-cloud-tools-virtual-hwe-16.04 \ + linux-image-virtual-hwe-16.04 \ + linux-image-extra-"$(uname -r)" +else + # Kernel 4.4 + apt install --install-recommends -y \ + linux-virtual-lts-xenial \ + linux-tools-virtual-lts-xenial \ + linux-cloud-tools-virtual-lts-xenial \ + linux-image-virtual-lts-xenial \ + linux-image-extra-"$(uname -r)" +fi # Set secure permissions final (./data/.htaccess has wrong permissions otherwise) bash $SECURE & spinner_loading |