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

Merge pull request #18 from YunoHost-Apps/mongo-fix

Mongo fix
This commit is contained in:
Gérard Collin 2023-01-18 11:17:28 +01:00 committed by GitHub
commit e664ee0ea6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 20 deletions

View file

@ -5,15 +5,15 @@ It shall NOT be edited by hand.
# Dont-code Services pour YunoHost
[![Niveau d'intégration](https://dash.yunohost.org/integration/dont-code.svg)](https://dash.yunohost.org/appci/app/dont-code) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/dont-code.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/dont-code.maintain.svg)
[![Niveau dintégration](https://dash.yunohost.org/integration/dont-code.svg)](https://dash.yunohost.org/appci/app/dont-code) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/dont-code.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/dont-code.maintain.svg)
[![Installer Dont-code Services avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=dont-code)
*[Read this readme in english.](./README.md)*
> *Ce package vous permet d'installer Dont-code Services rapidement et simplement sur un serveur YunoHost.
Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.*
> *Ce package vous permet dinstaller Dont-code Services rapidement et simplement sur un serveur YunoHost.
Si vous navez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment linstaller et en profiter.*
## Vue d'ensemble
## Vue densemble
Dont-code is a low-code / no-code platform letting user create their own applications based on complete feature sets developed by IT.
You can find more information here: https://dont-code.net
@ -35,10 +35,10 @@ This Yunohost app installs the server part (services + mongo database) needed to
**Démo :** https://dont-code.net/apps.html
## Captures d'écran
## Captures décran
![Capture d'écran de Dont-code Services](./doc/screenshots/previewer.gif)
![Capture d'écran de Dont-code Services](./doc/screenshots/ide.gif)
![Capture décran de Dont-code Services](./doc/screenshots/previewer.gif)
![Capture décran de Dont-code Services](./doc/screenshots/ide.gif)
## Avertissements / informations importantes
@ -53,10 +53,10 @@ This Yunohost app installs the server part (services + mongo database) needed to
## Documentations et ressources
* Site officiel de l'app : <https://dont-code.net>
* Site officiel de lapp : <https://dont-code.net>
* Documentation officielle utilisateur : <https://dont-code.net/news.html>
* Documentation officielle de l'admin : <https://dont-code.net/developers.html>
* Dépôt de code officiel de l'app : <https://github.com/dont-code>
* Documentation officielle de ladmin : <https://dont-code.net/developers.html>
* Dépôt de code officiel de lapp : <https://github.com/dont-code>
* Documentation YunoHost pour cette app : <https://yunohost.org/app_dont-code>
* Signaler un bug : <https://github.com/YunoHost-Apps/dont-code_ynh/issues>
@ -72,4 +72,4 @@ ou
sudo yunohost app upgrade dont-code -u https://github.com/YunoHost-Apps/dont-code_ynh/tree/testing --debug
```
**Plus d'infos sur le packaging d'applications :** <https://yunohost.org/packaging_apps>
**Plus dinfos sur le packaging dapplications :** <https://yunohost.org/packaging_apps>

View file

@ -319,16 +319,12 @@ ynh_install_mongo() {
# Make sure MongoDB is started and enabled
# systemctl enable $mongodb_servicename --quiet
# systemctl daemon-reload --quiet
ynh_exec_err uname -a
# Test mongod to see if it crashes
ynh_exec_err /usr/bin/mongod --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
# 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
ynh_systemd_action --service_name=$mongodb_servicename --action=restart --line_match="aiting for connections" --log_path="systemd" --length=100 --timeout=60