From f5814cc3742c807c19f5cabbca1ea346917673db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Thu, 19 Jan 2023 17:10:04 +0100 Subject: [PATCH 1/4] back to normal mongo install --- scripts/ynh_mongo_db__2 | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/scripts/ynh_mongo_db__2 b/scripts/ynh_mongo_db__2 index e60c2c2..f1acafa 100644 --- a/scripts/ynh_mongo_db__2 +++ b/scripts/ynh_mongo_db__2 @@ -317,14 +317,8 @@ ynh_install_mongo() { mongodb_servicename=mongod # Make sure MongoDB is started and enabled -# systemctl enable $mongodb_servicename --quiet -# systemctl daemon-reload --quiet - ynh_exec_err uname -a - - # crash mongod and display log - /usr/bin/mongod --help 1> mongo-crash.txt 2>&1 - ynh_exec_err ls -al /var/log - ynh_exec_err cat -n 30 /var/log/syslog + systemctl enable $mongodb_servicename --quiet + systemctl daemon-reload --quiet ynh_systemd_action --service_name=$mongodb_servicename --action=restart --line_match="aiting for connections" --log_path="systemd" --length=100 --timeout=60 From 838a00cd83ae39433b53f8678440996b89d8f7c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Thu, 19 Jan 2023 17:12:32 +0100 Subject: [PATCH 2/4] Re-enable all tests --- check_process | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/check_process b/check_process index bcdd8e3..d9dd343 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_private=1 setup_public=0 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 From 5abbd4b5ba377dbd4bf1e3c5e1718be74ea5b9ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Thu, 19 Jan 2023 17:13:36 +0100 Subject: [PATCH 3/4] Update check_process --- check_process | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_process b/check_process index d9dd343..ae4401e 100644 --- a/check_process +++ b/check_process @@ -12,8 +12,8 @@ setup_sub_dir=1 setup_root=1 setup_nourl=0 - setup_private=1 - setup_public=0 + setup_private=0 + setup_public=1 upgrade=0 upgrade=0 from_commit=CommitHash backup_restore=1 From f3d81af79f91e808d5ffe4788f1e7cff4df4aca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Thu, 19 Jan 2023 17:15:05 +0100 Subject: [PATCH 4/4] Install Java --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.