1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dont-code_ynh.git synced 2024-09-03 18:26:34 +02:00

Trying to understand why Mongo crashes in CI

This commit is contained in:
Gérard Collin 2023-01-08 12:04:44 +01:00
parent 378ae5835a
commit 1e231feae4

View file

@ -128,6 +128,14 @@ ynh_print_info --message="Debian release is $(ynh_get_debian_release)"
# Install the required version of Mongo
ynh_install_mongo --mongo_version=$mongo_version
# Try to get better error message from Mongo about why it doesn't start
ynh_exec_warn journalctl --quiet --no-hostname --no-pager --lines=100 --unit=mongod
log_path="/var/log/mongodb/mongod.log"
if [ -e "$log_path" ]; then
ynh_print_warn --message="\-\-\-"
ynh_exec_warn tail --lines=100 "$log_path"
fi
#=================================================
# CREATE DEDICATED USER
#=================================================