1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rocketchat_ynh.git synced 2024-09-03 20:16:25 +02:00

Merge pull request #163 from YunoHost-Apps/mongo

Mongo
This commit is contained in:
Éric Gaspar 2023-01-18 22:33:19 +01:00 committed by GitHub
commit b5f0e92d4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 14 deletions

View file

@ -5,15 +5,15 @@ It shall NOT be edited by hand.
# Rocket.Chat pour YunoHost
[![Niveau d'intégration](https://dash.yunohost.org/integration/rocketchat.svg)](https://dash.yunohost.org/appci/app/rocketchat) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/rocketchat.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/rocketchat.maintain.svg)
[![Niveau dintégration](https://dash.yunohost.org/integration/rocketchat.svg)](https://dash.yunohost.org/appci/app/rocketchat) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/rocketchat.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/rocketchat.maintain.svg)
[![Installer Rocket.Chat avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=rocketchat)
*[Read this readme in english.](./README.md)*
> *Ce package vous permet d'installer Rocket.Chat 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 Rocket.Chat 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
Rocket.Chat est une plate-forme de communication open source entièrement personnalisable développée en JavaScript pour les organisations avec des normes élevées de protection des données.
@ -30,9 +30,9 @@ Rocket.Chat est une plate-forme de communication open source entièrement person
**Démo :** https://cloud.rocket.chat/trial
## Captures d'écran
## Captures décran
![Capture d'écran de Rocket.Chat](./doc/screenshots/screenshot.jpg)
![Capture décran de Rocket.Chat](./doc/screenshots/screenshot.jpg)
## Avertissements / informations importantes
@ -60,10 +60,10 @@ En plus de l'interface Web, vous pouvez également télécharger les clients Roc
## Documentations et ressources
* Site officiel de l'app : <https://rocket.chat/>
* Site officiel de lapp : <https://rocket.chat/>
* Documentation officielle utilisateur : <https://docs.rocket.chat/guides/user-guides>
* Documentation officielle de l'admin : <https://docs.rocket.chat/>
* Dépôt de code officiel de l'app : <https://github.com/RocketChat/Rocket.Chat>
* Documentation officielle de ladmin : <https://docs.rocket.chat/>
* Dépôt de code officiel de lapp : <https://github.com/RocketChat/Rocket.Chat>
* Documentation YunoHost pour cette app : <https://yunohost.org/app_rocketchat>
* Signaler un bug : <https://github.com/YunoHost-Apps/rocketchat_ynh/issues>
@ -79,4 +79,4 @@ ou
sudo yunohost app upgrade rocketchat -u https://github.com/YunoHost-Apps/rocketchat_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

@ -18,7 +18,6 @@ pkg_dependencies="apt-transport-https build-essential gzip curl fontconfig graph
#=================================================
# EXPERIMENTAL HELPERS
#=================================================
#!/bin/bash
readonly YNH_DEFAULT_MONGO_VERSION=4.4
# Declare the actual MongoDB version to use: 4.4 ; 5.0
@ -109,7 +108,7 @@ ynh_mongo_exec() {
database=""
fi
mongosh --quiet $user $password $authenticationdatabase $host $port <<EOF
mongosh --quiet --username $user --password $password --authenticationDatabase $authenticationdatabase --host $host --port $port <<EOF
$database
${command}
quit()
@ -123,7 +122,7 @@ EOF
database=""
fi
mongosh --quiet $database $user $password $authenticationdatabase $host $port --eval="$command"
mongosh --quiet $database --username $user --password $password --authenticationDatabase $authenticationdatabase --host $host --port $port --eval="$command"
fi
}
@ -333,7 +332,7 @@ ynh_install_mongo() {
mongo_version="${mongo_version:-$YNH_MONGO_VERSION}"
ynh_print_info --message="Installing MongoDB Community Edition..."
ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian bullseye/mongodb-org/$mongo_version main" --package="mongodb-org mongodb-org-server mongodb-org-tools mongodb-mongosh" --key="https://www.mongodb.org/static/pgp/server-$mongo_version.asc"
ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian buster/mongodb-org/$mongo_version main" --package="mongodb-org mongodb-org-server mongodb-org-tools mongodb-mongosh" --key="https://www.mongodb.org/static/pgp/server-$mongo_version.asc"
mongodb_servicename=mongod
# Make sure MongoDB is started and enabled