Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hansson <mailto@danielhansson.nu>2022-05-13 14:14:04 +0300
committerGitHub <noreply@github.com>2022-05-13 14:14:04 +0300
commit50925dfafee8c21db62e7824337ef6bd341ef497 (patch)
tree726399810e659269121a0ffecf0d6584d88e2528
parent1e3cc332177aae949d8cbf6bae4c0e10960dfcc5 (diff)
only on 22.04
-rw-r--r--nextcloud_install_production.sh15
1 files changed, 7 insertions, 8 deletions
diff --git a/nextcloud_install_production.sh b/nextcloud_install_production.sh
index 0108f802..385c0c3a 100644
--- a/nextcloud_install_production.sh
+++ b/nextcloud_install_production.sh
@@ -52,6 +52,13 @@ cpu_check 1 Nextcloud
is_process_running apt
is_process_running dpkg
+# Check distribution and version
+if ! version 22.04 "$DISTRO" 22.04.10
+then
+ msg_box "This script can only be run on Ubuntu 22.04 (server)."
+ exit 1
+fi
+
# Install needed dependenices
install_if_not lshw
install_if_not net-tools
@@ -122,14 +129,6 @@ download_script STATIC adduser
bash $SCRIPTS/adduser.sh "nextcloud_install_production.sh"
rm -f $SCRIPTS/adduser.sh
-# Check distribution and version
-if ! version 20.04 "$DISTRO" 22.04.10
-then
- msg_box "This script can only be run on Ubuntu 20.04 (server)."
- exit 1
-fi
-# Use this when Ubuntu 18.04 is deprecated from the function:
-#check_distro_version
check_universe
check_multiverse