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

Seems like mongod is corrupted

This commit is contained in:
Gérard Collin 2023-01-14 19:47:49 +01:00
parent a883983b3a
commit 3ac8354dd7
2 changed files with 6 additions and 3 deletions

View file

@ -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.

View file

@ -322,10 +322,13 @@ ynh_install_mongo() {
# Test mongod to see if it crashes
ynh_exec_err /usr/bin/mongod --help
ynh_exec_err /usr/bin/mongosh --help
ynh_exec_err which mongod
ynh_exec_err ldd /usr/bin/mongod
ynh_exec_err ls -al /usr/bin/mongod
# sleep 60
# pkill mongod
ynh_exec_err cat /var/log/mongodb/mongod.conf
# ynh_exec_err cat /var/log/mongodb/mongod.conf
ynh_systemd_action --service_name=$mongodb_servicename --action=restart --line_match="aiting for connections" --log_path="systemd" --length=100 --timeout=60