From ae27e53f82455060e1c04899494c705206369e85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Fri, 20 Jan 2023 20:30:23 +0100 Subject: [PATCH] Installing buster if needed --- check_process | 12 ++++++------ scripts/install | 2 +- scripts/ynh_mongo_db__2 | 3 ++- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/check_process b/check_process index bcdd8e3..ae4401e 100644 --- a/check_process +++ b/check_process @@ -8,18 +8,18 @@ public_key="dummy public key" is_public=1 ; Checks - pkg_linter=0 + pkg_linter=1 setup_sub_dir=1 - setup_root=0 + setup_root=1 setup_nourl=0 setup_private=0 - setup_public=0 + setup_public=1 upgrade=0 upgrade=0 from_commit=CommitHash - backup_restore=0 + backup_restore=1 multi_instance=0 - port_already_use=0 (8083) - change_url=0 + port_already_use=1 (8083) + change_url=1 ;;; Options Email=ger@shared.collin.best Notification=Down diff --git a/scripts/install b/scripts/install index f79fb3f..e94a4a1 100755 --- a/scripts/install +++ b/scripts/install @@ -111,7 +111,7 @@ PORT_LIST=($port_ide $port_preview $port_project $port_data) ynh_script_progression --message="Installing dependencies..." --weight=1 # Install the required version of Java -# ynh_install_java --java_version=$java_version --jdk_type=jre +ynh_install_java --java_version=$java_version --jdk_type=jre ### `ynh_install_app_dependencies` allows you to add any "apt" dependencies to the package. ### Those deb packages will be installed as dependencies of this package. diff --git a/scripts/ynh_mongo_db__2 b/scripts/ynh_mongo_db__2 index 91b287c..574d54f 100644 --- a/scripts/ynh_mongo_db__2 +++ b/scripts/ynh_mongo_db__2 @@ -315,7 +315,8 @@ ynh_install_mongo() { ynh_print_info --message="Installing MongoDB Community Edition ..." # Install the version that works with the host cpu (see https://docs.mongodb.com/manual/administration/production-notes/#x86_64) local mongo_debian_release=$(ynh_get_debian_release) - if [[ ""$(cat /proc/cpuinfo) == *"avx"* && "$mongo_debian_release" != "buster" ]]; then + + if [[ $(cat /proc/cpuinfo) != *"avx"* && "$mongo_debian_release" != "buster" ]]; then mongo_debian_release="buster" ynh_print_warn --message="Installing Mongo buster version to support your cpu." fi