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:
parent
a883983b3a
commit
3ac8354dd7
2 changed files with 6 additions and 3 deletions
|
@ -111,7 +111,7 @@ PORT_LIST=($port_ide $port_preview $port_project $port_data)
|
||||||
ynh_script_progression --message="Installing dependencies..." --weight=1
|
ynh_script_progression --message="Installing dependencies..." --weight=1
|
||||||
|
|
||||||
# Install the required version of Java
|
# 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.
|
### `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.
|
### Those deb packages will be installed as dependencies of this package.
|
||||||
|
|
|
@ -322,10 +322,13 @@ ynh_install_mongo() {
|
||||||
|
|
||||||
# Test mongod to see if it crashes
|
# Test mongod to see if it crashes
|
||||||
ynh_exec_err /usr/bin/mongod --help
|
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
|
# sleep 60
|
||||||
# pkill mongod
|
# 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
|
ynh_systemd_action --service_name=$mongodb_servicename --action=restart --line_match="aiting for connections" --log_path="systemd" --length=100 --timeout=60
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue