From 5d147233a89ed699d9984668b619fe1e1c1fd67a Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Wed, 3 Apr 2024 06:43:43 +0000 Subject: [PATCH 1/9] Auto-update READMEs --- ALL_README.md | 2 +- README.md | 2 +- README_eu.md | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 README_eu.md diff --git a/ALL_README.md b/ALL_README.md index 3d6c579..77b7509 100644 --- a/ALL_README.md +++ b/ALL_README.md @@ -1,6 +1,6 @@ # All available README files by language - [Read the README in English](README.md) +- [Irakurri README euskaraz](README_eu.md) - [Lire le README en français](README_fr.md) - [Le o README en galego](README_gl.md) -- [Leggi il “README” in italiano](README_it.md) diff --git a/README.md b/README.md index c5632bc..15ca23a 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ It shall NOT be edited by hand. [![Install Mongo Express with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=mongo-express) -*[Read this README is other languages.](./ALL_README.md)* +*[Read this README in other languages.](./ALL_README.md)* > *This package allows you to install Mongo Express quickly and simply on a YunoHost server.* > *If you don't have YunoHost, please consult [the guide](https://yunohost.org/install) to learn how to install it.* diff --git a/README_eu.md b/README_eu.md new file mode 100644 index 0000000..63aca91 --- /dev/null +++ b/README_eu.md @@ -0,0 +1,67 @@ + + +# Mongo Express YunoHost-erako + +[![Integrazio maila](https://dash.yunohost.org/integration/mongo-express.svg)](https://dash.yunohost.org/appci/app/mongo-express) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/mongo-express.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/mongo-express.maintain.svg) + +[![Instalatu Mongo Express YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=mongo-express) + +*[Irakurri README hau beste hizkuntzatan.](./ALL_README.md)* + +> *Pakete honek Mongo Express YunoHost zerbitzari batean azkar eta zailtasunik gabe instalatzea ahalbidetzen dizu.* +> *YunoHost ez baduzu, kontsultatu [gida](https://yunohost.org/install) nola instalatu ikasteko.* + +## Aurreikuspena + +Mongo Express is a Web-based MongoDB admin interface written with Node.js, Express and Bootstrap3. +You can as well install a Mongo database - version 4, 5 or 6 in your yunohost server if you want + +### Features +- Optionally installs Mongo server +- Connect to multiple databases +- View/add/delete databases +- View/add/rename/delete collections +- View/add/update/delete documents +- Preview audio/video/image assets inline in collection view +- Nested and/or large objects are collapsible for easy overview +- Async on-demand loading of big document properties (>100KB default) to keep collection view fast +- GridFS support - add/get/delete incredibly large files +- Use BSON data types in documents +- Mobile / Responsive - Bootstrap 3 works passably on small screens when you're in a bind +- Connect and authenticate to individual databases +- Authenticate as admin to view all databases +- Database blacklist/whitelist +- Custom CA and CA validation disabling +- Supports replica sets + + +**Paketatutako bertsioa:** 1.0.2~ynh1 + +## Pantaila-argazkiak + +![Mongo Express(r)en pantaila-argazkia](./doc/screenshots/document-edit.png) +![Mongo Express(r)en pantaila-argazkia](./doc/screenshots/collection-view.png) +![Mongo Express(r)en pantaila-argazkia](./doc/screenshots/databases-view.png) + +## Dokumentazioa eta baliabideak + +- Jatorrizko aplikazioaren kode-gordailua: +- YunoHost Denda: +- Eman errore baten berri: + +## Garatzaileentzako informazioa + +Bidali `pull request`a [`testing` abarrera](https://github.com/YunoHost-Apps/mongo-express_ynh/tree/testing). + +`testing` abarra probatzeko, ondorengoa egin: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/mongo-express_ynh/tree/testing --debug +edo +sudo yunohost app upgrade mongo-express -u https://github.com/YunoHost-Apps/mongo-express_ynh/tree/testing --debug +``` + +**Informazio gehiago aplikazioaren paketatzeari buruz:** From a40cb1d2000d2686ef1eaab55778a857a93e05d6 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Mon, 10 Jun 2024 20:01:24 +0200 Subject: [PATCH 2/9] rely on the core mongo helper --- scripts/_common.sh | 1 + scripts/ynh_mongo_db__2 | 363 ---------------------------------------- 2 files changed, 1 insertion(+), 363 deletions(-) delete mode 100644 scripts/ynh_mongo_db__2 diff --git a/scripts/_common.sh b/scripts/_common.sh index 9dfb3c4..dbc7431 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -5,6 +5,7 @@ #================================================= nodejs_version=16 +YNH_MONGO_VERSION=6.0 #================================================= # PERSONAL HELPERS diff --git a/scripts/ynh_mongo_db__2 b/scripts/ynh_mongo_db__2 deleted file mode 100644 index cb7317b..0000000 --- a/scripts/ynh_mongo_db__2 +++ /dev/null @@ -1,363 +0,0 @@ -#!/bin/bash - -readonly YNH_DEFAULT_MONGO_VERSION=4.4 -# Declare the actual MongoDB version to use: 4.4 ; 5.0 ; 6.0 -# A packager willing to use another version of MongoDB can override the variable into its _common.sh. -YNH_MONGO_VERSION=${YNH_MONGO_VERSION:-$YNH_DEFAULT_MONGO_VERSION} - -# Execute a mongo command -# -# example: ynh_mongo_exec --command='db.getMongo().getDBNames().indexOf("wekan")' -# example: ynh_mongo_exec --command="db.getMongo().getDBNames().indexOf(\"wekan\")" -# -# usage: ynh_mongo_exec [--user=user] [--password=password] [--authenticationdatabase=authenticationdatabase] [--database=database] [--host=host] [--port=port] --command="command" [--eval] -# | arg: -u, --user= - The user name to connect as -# | arg: -p, --password= - The user password -# | arg: -d, --authenticationdatabase= - The authenticationdatabase to connect to -# | arg: -d, --database= - The database to connect to -# | arg: -h, --host= - The host to connect to -# | arg: -P, --port= - The port to connect to -# | arg: -c, --command= - The command to evaluate -# | arg: -e, --eval - Evaluate instead of execute the command. -# -# -ynh_mongo_exec() { - # Declare an array to define the options of this helper. - local legacy_args=upadhPce - local -A args_array=( [u]=user= [p]=password= [a]=authenticationdatabase= [d]=database= [h]=host= [P]=port= [c]=command= [e]=eval ) - local user - local password - local authenticationdatabase - local database - local host - local port - local command - local eval - # Manage arguments with getopts - ynh_handle_getopts_args "$@" - user="${user:-}" - password="${password:-}" - authenticationdatabase="${authenticationdatabase:-}" - database="${database:-}" - host="${host:-}" - port="${port:-}" - eval=${eval:-0} - - # If user is provided - if [ -n "$user" ] - then - user="--username=$user" - - # If password is provided - if [ -n "$password" ] - then - password="--password=$password" - fi - - # If authenticationdatabase is provided - if [ -n "$authenticationdatabase" ] - then - authenticationdatabase="--authenticationDatabase=$authenticationdatabase" - else - authenticationdatabase="--authenticationDatabase=admin" - fi - else - password="" - authenticationdatabase="" - fi - - # If host is provided - if [ -n "$host" ] - then - host="--host=$host" - fi - - # If port is provided - if [ -n "$port" ] - then - port="--port=$port" - fi - - # If eval is not provided - if [ $eval -eq 0 ] - then - # If database is provided - if [ -n "$database" ] - then - database="use $database" - else - database="" - fi - - mongosh --quiet --username $user --password $password --authenticationDatabase $authenticationdatabase --host $host --port $port < ./dump.bson -# -# usage: ynh_mongo_dump_db --database=database -# | arg: -d, --database= - The database name to dump -# | ret: the mongodump output -# -# -ynh_mongo_dump_db() { - # Declare an array to define the options of this helper. - local legacy_args=d - local -A args_array=( [d]=database= ) - local database - # Manage arguments with getopts - ynh_handle_getopts_args "$@" - - mongodump --quiet --db="$database" --archive -} - -# Create a user -# -# [internal] -# -# usage: ynh_mongo_create_user --db_user=user --db_pwd=pwd --db_name=name -# | arg: -u, --db_user= - The user name to create -# | arg: -p, --db_pwd= - The password to identify user by -# | arg: -n, --db_name= - Name of the database to grant privilegies -# -# -ynh_mongo_create_user() { - # Declare an array to define the options of this helper. - local legacy_args=unp - local -A args_array=( [u]=db_user= [n]=db_name= [p]=db_pwd= ) - local db_user - local db_name - local db_pwd - # Manage arguments with getopts - ynh_handle_getopts_args "$@" - - # Create the user and set the user as admin of the db - ynh_mongo_exec --database="$db_name" --command='db.createUser( { user: "'${db_user}'", pwd: "'${db_pwd}'", roles: [ { role: "readWrite", db: "'${db_name}'" } ] } );' - - # Add clustermonitoring rights - ynh_mongo_exec --database="$db_name" --command='db.grantRolesToUser("'${db_user}'",[{ role: "clusterMonitor", db: "admin" }]);' -} - -# Check if a mongo database exists -# -# usage: ynh_mongo_database_exists --database=database -# | arg: -d, --database= - The database for which to check existence -# | exit: Return 1 if the database doesn't exist, 0 otherwise -# -# -ynh_mongo_database_exists() { - # Declare an array to define the options of this helper. - local legacy_args=d - local -A args_array=([d]=database=) - local database - # Manage arguments with getopts - ynh_handle_getopts_args "$@" - - if [ $(ynh_mongo_exec --command='db.getMongo().getDBNames().indexOf("'${database}'")' --eval) -lt 0 ] - then - return 1 - else - return 0 - fi -} - -# Restore a database -# -# example: ynh_mongo_restore_db --database=wekan < ./dump.bson -# -# usage: ynh_mongo_restore_db --database=database -# | arg: -d, --database= - The database name to restore -# -# -ynh_mongo_restore_db() { - # Declare an array to define the options of this helper. - local legacy_args=d - local -A args_array=( [d]=database= ) - local database - # Manage arguments with getopts - ynh_handle_getopts_args "$@" - - mongorestore --quiet --db="$database" --archive -} - -# Drop a user -# -# [internal] -# -# usage: ynh_mongo_drop_user --db_user=user --db_name=name -# | arg: -u, --db_user= - The user to drop -# | arg: -n, --db_name= - Name of the database -# -# -ynh_mongo_drop_user() { - # Declare an array to define the options of this helper. - local legacy_args=un - local -A args_array=( [u]=db_user= [n]=db_name= ) - local db_user - local db_name - # Manage arguments with getopts - ynh_handle_getopts_args "$@" - - ynh_mongo_exec --database="$db_name" --command='db.dropUser("'$db_user'", {w: "majority", wtimeout: 5000})' -} - -# Create a database, an user and its password. Then store the password in the app's config -# -# usage: ynh_mongo_setup_db --db_user=user --db_name=name [--db_pwd=pwd] -# | arg: -u, --db_user= - Owner of the database -# | arg: -n, --db_name= - Name of the database -# | arg: -p, --db_pwd= - Password of the database. If not provided, a password will be generated -# -# After executing this helper, the password of the created database will be available in $db_pwd -# It will also be stored as "mongopwd" into the app settings. -# -# -ynh_mongo_setup_db() { - # Declare an array to define the options of this helper. - local legacy_args=unp - local -A args_array=( [u]=db_user= [n]=db_name= [p]=db_pwd= ) - local db_user - local db_name - db_pwd="" - # Manage arguments with getopts - ynh_handle_getopts_args "$@" - - local new_db_pwd=$(ynh_string_random) # Generate a random password - # If $db_pwd is not provided, use new_db_pwd instead for db_pwd - db_pwd="${db_pwd:-$new_db_pwd}" - - # Create the user and grant access to the database - ynh_mongo_create_user --db_user="$db_user" --db_pwd="$db_pwd" --db_name="$db_name" - - # Store the password in the app's config - ynh_app_setting_set --app=$app --key=db_pwd --value=$db_pwd -} - -# Remove a database if it exists, and the associated user -# -# usage: ynh_mongo_remove_db --db_user=user --db_name=name -# | arg: -u, --db_user= - Owner of the database -# | arg: -n, --db_name= - Name of the database -# -# -ynh_mongo_remove_db() { - # Declare an array to define the options of this helper. - local legacy_args=un - local -A args_array=( [u]=db_user= [n]=db_name= ) - local db_user - local db_name - # Manage arguments with getopts - ynh_handle_getopts_args "$@" - - if ynh_mongo_database_exists --database=$db_name; then # Check if the database exists - ynh_mongo_drop_db --database=$db_name # Remove the database - else - ynh_print_warn --message="Database $db_name not found" - fi - - # Remove mongo user if it exists - ynh_mongo_drop_user --db_user=$db_user --db_name=$db_name -} - -# Install MongoDB and integrate MongoDB service in YunoHost -# -# usage: ynh_install_mongo [--mongo_version=mongo_version] -# | arg: -m, --mongo_version= - Version of MongoDB to install -# -# -ynh_install_mongo() { - # Declare an array to define the options of this helper. - local legacy_args=m - local -A args_array=([m]=mongo_version=) - local mongo_version - # Manage arguments with getopts - ynh_handle_getopts_args "$@" - mongo_version="${mongo_version:-$YNH_MONGO_VERSION}" - - ynh_print_info --message="Installing MongoDB Community Edition ..." - local mongo_debian_release=$(ynh_get_debian_release) - local mongo_packages="mongodb-org-server mongodb-database-tools mongodb-org-shell" - - if [[ $(cat /proc/cpuinfo) != *"avx"* && "$mongo_version" != "4.4" ]]; then - ynh_print_warn --message="Installing Mongo 4.4 as $mongo_version is not compatible with your cpu (see https://docs.mongodb.com/manual/administration/production-notes/#x86_64)." - mongo_version="4.4" - fi - if [[ "$mongo_version" == "4.4" ]]; then - ynh_print_warn --message="Switching to buster package install for Mongo 4.4." - mongo_debian_release=buster - mongo_packages="mongodb-org-server mongodb-database-tools mongodb-mongosh-shared-openssl11" - fi - - ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian $mongo_debian_release/mongodb-org/$mongo_version main" --package="$mongo_packages" --key="https://www.mongodb.org/static/pgp/server-$mongo_version.asc" - mongodb_servicename=mongod - - # Make sure MongoDB is started and enabled - systemctl enable $mongodb_servicename --quiet - systemctl daemon-reload --quiet - - ynh_systemd_action --service_name=$mongodb_servicename --action=restart --line_match="aiting for connections" --log_path="/var/log/mongodb/$mongodb_servicename.log" - - # Integrate MongoDB service in YunoHost - yunohost service add $mongodb_servicename --description="MongoDB daemon" --log="/var/log/mongodb/$mongodb_servicename.log" - - # Store mongo_version into the config of this app - ynh_app_setting_set --app=$app --key=mongo_version --value=$mongo_version -} - -# Remove MongoDB -# Only remove the MongoDB service integration in YunoHost for now -# if MongoDB package as been removed -# -# usage: ynh_remove_mongo -# -# -ynh_remove_mongo() { - # Only remove the mongodb service if it is not installed. - if ! ynh_package_is_installed --package="mongodb*" - then - ynh_print_info --message="Removing MongoDB service..." - mongodb_servicename=mongod - # Remove the mongodb service - yunohost service remove $mongodb_servicename - ynh_secure_remove --file="/var/lib/mongodb" - ynh_secure_remove --file="/var/log/mongodb" - fi -} From 673f801615472b2180967157971bb12b0dd1aaad Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Mon, 10 Jun 2024 20:02:14 +0200 Subject: [PATCH 3/9] =?UTF-8?q?=E2=80=A6=20and=20begin=20the=20upgrade=20o?= =?UTF-8?q?f=20mongo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index dbc7431..5102d8f 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -5,7 +5,7 @@ #================================================= nodejs_version=16 -YNH_MONGO_VERSION=6.0 +YNH_MONGO_VERSION=5.0 #================================================= # PERSONAL HELPERS From cab513f94affd8006235e02acadc27e8517b5a3d Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Mon, 10 Jun 2024 20:07:25 +0200 Subject: [PATCH 4/9] remove old mongo helper sourcing --- scripts/install | 1 - scripts/remove | 1 - scripts/restore | 1 - scripts/upgrade | 1 - 4 files changed, 4 deletions(-) diff --git a/scripts/install b/scripts/install index 8f0b482..5649ceb 100755 --- a/scripts/install +++ b/scripts/install @@ -7,7 +7,6 @@ #================================================= source _common.sh -source ynh_mongo_db__2 source /usr/share/yunohost/helpers #================================================= diff --git a/scripts/remove b/scripts/remove index 0a568a4..9b85d06 100755 --- a/scripts/remove +++ b/scripts/remove @@ -7,7 +7,6 @@ #================================================= source _common.sh -source ynh_mongo_db__2 source /usr/share/yunohost/helpers #================================================= diff --git a/scripts/restore b/scripts/restore index 6388d4c..a49cc02 100755 --- a/scripts/restore +++ b/scripts/restore @@ -8,7 +8,6 @@ # Keep this path for calling _common.sh inside the execution's context of backup and restore scripts source ../settings/scripts/_common.sh -source ../settings/scripts/ynh_mongo_db__2 source /usr/share/yunohost/helpers #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 1feaf5f..2e29395 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -7,7 +7,6 @@ #================================================= source _common.sh -source ynh_mongo_db__2 source /usr/share/yunohost/helpers #================================================= From d3366e3334961500e3636de2c9d8a6bb8d852c8d Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Mon, 10 Jun 2024 20:11:58 +0200 Subject: [PATCH 5/9] update minimum Yunohost version --- manifest.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index 3b1e971..67994be 100644 --- a/manifest.toml +++ b/manifest.toml @@ -17,7 +17,7 @@ code = "https://github.com/mongo-express/mongo-express" cpe = "cpe:2.3:a:mongo-express_project:mongo-express" [integration] -yunohost = ">= 11.2" +yunohost = ">= 11.2.12" architectures = ["amd64"] multi_instance = false From 45d88398aac6dc89055b1524e3b846e4343880fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Fri, 21 Jun 2024 10:16:39 +0200 Subject: [PATCH 6/9] v6.0 by default --- ALL_README.md | 6 +++++ README.md | 24 ++++++++--------- README_fr.md | 28 +++++++++---------- README_gl.md | 67 ++++++++++++++++++++++++++++++++++++++++++++++ README_it.md | 67 ++++++++++++++++++++++++++++++++++++++++++++++ manifest.toml | 4 +-- scripts/_common.sh | 2 +- 7 files changed, 169 insertions(+), 29 deletions(-) create mode 100644 ALL_README.md create mode 100644 README_gl.md create mode 100644 README_it.md diff --git a/ALL_README.md b/ALL_README.md new file mode 100644 index 0000000..3d6c579 --- /dev/null +++ b/ALL_README.md @@ -0,0 +1,6 @@ +# All available README files by language + +- [Read the README in English](README.md) +- [Lire le README en français](README_fr.md) +- [Le o README en galego](README_gl.md) +- [Leggi il “README” in italiano](README_it.md) diff --git a/README.md b/README.md index 0fa3c5f..e35345b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ @@ -9,15 +9,15 @@ It shall NOT be edited by hand. [![Install Mongo Express with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=mongo-express) -*[Lire ce readme en français.](./README_fr.md)* +*[Read this README is other languages.](./ALL_README.md)* -> *This package allows you to install Mongo Express quickly and simply on a YunoHost server. -If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.* +> *This package allows you to install Mongo Express quickly and simply on a YunoHost server.* +> *If you don't have YunoHost, please consult [the guide](https://yunohost.org/install) to learn how to install it.* ## Overview Mongo Express is a Web-based MongoDB admin interface written with Node.js, Express and Bootstrap3. -You can as well install a Mongo database - version 4, 5 or 6 in your yunohost server if you want +You can as well install a Mongo database - version 4, 5, 6 or 7 in your yunohost server if you want ### Features - Optionally installs Mongo server @@ -38,7 +38,7 @@ You can as well install a Mongo database - version 4, 5 or 6 in your yunohost se - Supports replica sets -**Shipped version:** 1.0.2~ynh1 +**Shipped version:** 1.0.2~ynh2 ## Screenshots @@ -48,17 +48,17 @@ You can as well install a Mongo database - version 4, 5 or 6 in your yunohost se ## Documentation and resources -* Upstream app code repository: -* YunoHost Store: -* Report a bug: +- Upstream app code repository: +- YunoHost Store: +- Report a bug: ## Developer info -Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/mongo-express_ynh/tree/testing). +Please send your pull request to the [`testing` branch](https://github.com/YunoHost-Apps/mongo-express_ynh/tree/testing). -To try the testing branch, please proceed like that. +To try the `testing` branch, please proceed like that: -``` bash +```bash sudo yunohost app install https://github.com/YunoHost-Apps/mongo-express_ynh/tree/testing --debug or sudo yunohost app upgrade mongo-express -u https://github.com/YunoHost-Apps/mongo-express_ynh/tree/testing --debug diff --git a/README_fr.md b/README_fr.md index bc98711..639ae4e 100644 --- a/README_fr.md +++ b/README_fr.md @@ -1,6 +1,6 @@ # Mongo Express pour YunoHost @@ -9,15 +9,15 @@ It shall NOT be edited by hand. [![Installer Mongo Express avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=mongo-express) -*[Read this readme in english.](./README.md)* +*[Lire le README dans d'autres langues.](./ALL_README.md)* -> *Ce package vous permet d’installer Mongo Express 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 d’installer Mongo Express rapidement et simplement sur un serveur YunoHost.* +> *Si vous n’avez pas YunoHost, consultez [ce guide](https://yunohost.org/install) pour savoir comment l’installer et en profiter.* ## Vue d’ensemble Mongo Express is a Web-based MongoDB admin interface written with Node.js, Express and Bootstrap3. -You can as well install a Mongo database - version 4, 5 or 6 in your yunohost server if you want +You can as well install a Mongo database - version 4, 5, 6 or 7 in your yunohost server if you want ### Features - Optionally installs Mongo server @@ -38,7 +38,7 @@ You can as well install a Mongo database - version 4, 5 or 6 in your yunohost se - Supports replica sets -**Version incluse :** 1.0.2~ynh1 +**Version incluse :** 1.0.2~ynh2 ## Captures d’écran @@ -48,20 +48,20 @@ You can as well install a Mongo database - version 4, 5 or 6 in your yunohost se ## Documentations et ressources -* Dépôt de code officiel de l’app : -* YunoHost Store: -* Signaler un bug : +- Dépôt de code officiel de l’app : +- YunoHost Store : +- Signaler un bug : ## Informations pour les développeurs -Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/mongo-express_ynh/tree/testing). +Merci de faire vos pull request sur la [branche `testing`](https://github.com/YunoHost-Apps/mongo-express_ynh/tree/testing). -Pour essayer la branche testing, procédez comme suit. +Pour essayer la branche `testing`, procédez comme suit : -``` bash +```bash sudo yunohost app install https://github.com/YunoHost-Apps/mongo-express_ynh/tree/testing --debug ou sudo yunohost app upgrade mongo-express -u https://github.com/YunoHost-Apps/mongo-express_ynh/tree/testing --debug ``` -**Plus d’infos sur le packaging d’applications :** \ No newline at end of file +**Plus d’infos sur le packaging d’applications :** diff --git a/README_gl.md b/README_gl.md new file mode 100644 index 0000000..07ca4e5 --- /dev/null +++ b/README_gl.md @@ -0,0 +1,67 @@ + + +# Mongo Express para YunoHost + +[![Nivel de integración](https://dash.yunohost.org/integration/mongo-express.svg)](https://dash.yunohost.org/appci/app/mongo-express) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/mongo-express.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/mongo-express.maintain.svg) + +[![Instalar Mongo Express con YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=mongo-express) + +*[Le este README en outros idiomas.](./ALL_README.md)* + +> *Este paquete permíteche instalar Mongo Express de xeito rápido e doado nun servidor YunoHost.* +> *Se non usas YunoHost, le a [documentación](https://yunohost.org/install) para saber como instalalo.* + +## Vista xeral + +Mongo Express is a Web-based MongoDB admin interface written with Node.js, Express and Bootstrap3. +You can as well install a Mongo database - version 4, 5, 6 or 7 in your yunohost server if you want + +### Features +- Optionally installs Mongo server +- Connect to multiple databases +- View/add/delete databases +- View/add/rename/delete collections +- View/add/update/delete documents +- Preview audio/video/image assets inline in collection view +- Nested and/or large objects are collapsible for easy overview +- Async on-demand loading of big document properties (>100KB default) to keep collection view fast +- GridFS support - add/get/delete incredibly large files +- Use BSON data types in documents +- Mobile / Responsive - Bootstrap 3 works passably on small screens when you're in a bind +- Connect and authenticate to individual databases +- Authenticate as admin to view all databases +- Database blacklist/whitelist +- Custom CA and CA validation disabling +- Supports replica sets + + +**Versión proporcionada:** 1.0.2~ynh2 + +## Capturas de pantalla + +![Captura de pantalla de Mongo Express](./doc/screenshots/document-edit.png) +![Captura de pantalla de Mongo Express](./doc/screenshots/collection-view.png) +![Captura de pantalla de Mongo Express](./doc/screenshots/databases-view.png) + +## Documentación e recursos + +- Repositorio de orixe do código: +- Tenda YunoHost: +- Informar dun problema: + +## Info de desenvolvemento + +Envía a túa colaboración á [rama `testing`](https://github.com/YunoHost-Apps/mongo-express_ynh/tree/testing). + +Para probar a rama `testing`, procede deste xeito: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/mongo-express_ynh/tree/testing --debug +ou +sudo yunohost app upgrade mongo-express -u https://github.com/YunoHost-Apps/mongo-express_ynh/tree/testing --debug +``` + +**Máis info sobre o empaquetado da app:** diff --git a/README_it.md b/README_it.md new file mode 100644 index 0000000..2daa0c9 --- /dev/null +++ b/README_it.md @@ -0,0 +1,67 @@ + + +# Mongo Express per YunoHost + +[![Livello di integrazione](https://dash.yunohost.org/integration/mongo-express.svg)](https://dash.yunohost.org/appci/app/mongo-express) ![Stato di funzionamento](https://ci-apps.yunohost.org/ci/badges/mongo-express.status.svg) ![Stato di manutenzione](https://ci-apps.yunohost.org/ci/badges/mongo-express.maintain.svg) + +[![Installa Mongo Express con YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=mongo-express) + +*[Leggi questo README in altre lingue.](./ALL_README.md)* + +> *Questo pacchetto ti permette di installare Mongo Express su un server YunoHost in modo semplice e veloce.* +> *Se non hai YunoHost, consulta [la guida](https://yunohost.org/install) per imparare a installarlo.* + +## Panoramica + +Mongo Express is a Web-based MongoDB admin interface written with Node.js, Express and Bootstrap3. +You can as well install a Mongo database - version 4, 5, 6 or 7 in your yunohost server if you want + +### Features +- Optionally installs Mongo server +- Connect to multiple databases +- View/add/delete databases +- View/add/rename/delete collections +- View/add/update/delete documents +- Preview audio/video/image assets inline in collection view +- Nested and/or large objects are collapsible for easy overview +- Async on-demand loading of big document properties (>100KB default) to keep collection view fast +- GridFS support - add/get/delete incredibly large files +- Use BSON data types in documents +- Mobile / Responsive - Bootstrap 3 works passably on small screens when you're in a bind +- Connect and authenticate to individual databases +- Authenticate as admin to view all databases +- Database blacklist/whitelist +- Custom CA and CA validation disabling +- Supports replica sets + + +**Versione pubblicata:** 1.0.2~ynh2 + +## Screenshot + +![Screenshot di Mongo Express](./doc/screenshots/document-edit.png) +![Screenshot di Mongo Express](./doc/screenshots/collection-view.png) +![Screenshot di Mongo Express](./doc/screenshots/databases-view.png) + +## Documentazione e risorse + +- Repository upstream del codice dell’app: +- Store di YunoHost: +- Segnala un problema: + +## Informazioni per sviluppatori + +Si prega di inviare la tua pull request alla [branch di `testing`](https://github.com/YunoHost-Apps/mongo-express_ynh/tree/testing). + +Per provare la branch di `testing`, si prega di procedere in questo modo: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/mongo-express_ynh/tree/testing --debug +o +sudo yunohost app upgrade mongo-express -u https://github.com/YunoHost-Apps/mongo-express_ynh/tree/testing --debug +``` + +**Maggiori informazioni riguardo il pacchetto di quest’app:** diff --git a/manifest.toml b/manifest.toml index 67994be..7dcce8a 100644 --- a/manifest.toml +++ b/manifest.toml @@ -7,7 +7,7 @@ name = "Mongo Express" description.en = "Admin server for Mongo and optionally Mongo database" description.fr = "Serveur d'administration pour Mongo ainsi qu'optionnellement une base Mongo" -version = "1.0.2~ynh1" +version = "1.0.2~ynh2" maintainers = ["Gerard Collin"] @@ -45,7 +45,7 @@ ram.runtime = "50M" ask.en = "Select the major version of Mongo to install or 'None' if already installed" ask.fr = "Choisissez la version de Mongo a installer ou 'None' si Mongo est déjà installé" type = "select" - choices = ["None", "4.4", "5.0", "6.0"] + choices = ["None", "4.4", "5.0", "6.0", "7.0"] default = "6.0" [resources] diff --git a/scripts/_common.sh b/scripts/_common.sh index 5102d8f..dbc7431 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -5,7 +5,7 @@ #================================================= nodejs_version=16 -YNH_MONGO_VERSION=5.0 +YNH_MONGO_VERSION=6.0 #================================================= # PERSONAL HELPERS From bed673d5b353ecb6a59057506574c3f1e9799e76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Fri, 21 Jun 2024 11:33:32 +0200 Subject: [PATCH 7/9] No need to remove log on uninstall --- scripts/remove | 3 --- 1 file changed, 3 deletions(-) diff --git a/scripts/remove b/scripts/remove index 9b85d06..34d2596 100755 --- a/scripts/remove +++ b/scripts/remove @@ -24,9 +24,6 @@ fi # Remove the dedicated systemd config ynh_remove_systemd_config -# Remove the app-specific logrotate config -ynh_remove_logrotate - # Remove the dedicated NGINX config ynh_remove_nginx_config From 7f9b97ee63760ce3bd0f7341cdefff6d1d739690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Fri, 21 Jun 2024 11:36:36 +0200 Subject: [PATCH 8/9] Removes the log config but not the log --- scripts/remove | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/remove b/scripts/remove index 34d2596..5f63d66 100755 --- a/scripts/remove +++ b/scripts/remove @@ -24,12 +24,12 @@ fi # Remove the dedicated systemd config ynh_remove_systemd_config +# Remove the app-specific logrotate config +ynh_remove_logrotate + # Remove the dedicated NGINX config ynh_remove_nginx_config -# Remove the log files -ynh_secure_remove --file="/var/log/$app" - #================================================= # REMOVE DEPENDENCIES #================================================= From 79e6343047f9dc9e1705c9c16c227c24d877efd4 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Fri, 21 Jun 2024 12:15:31 +0000 Subject: [PATCH 9/9] Auto-update READMEs --- ALL_README.md | 5 ++-- README.md | 4 +-- README_es.md | 67 +++++++++++++++++++++++++++++++++++++++++++++++ README_eu.md | 2 +- README_fr.md | 2 +- README_gl.md | 2 +- README_zh_Hans.md | 67 +++++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 142 insertions(+), 7 deletions(-) create mode 100644 README_es.md create mode 100644 README_zh_Hans.md diff --git a/ALL_README.md b/ALL_README.md index 91e579f..152f2e7 100644 --- a/ALL_README.md +++ b/ALL_README.md @@ -1,7 +1,8 @@ # All available README files by language - [Read the README in English](README.md) +- [Lea el README en español](README_es.md) +- [Irakurri README euskaraz](README_eu.md) - [Lire le README en français](README_fr.md) - [Le o README en galego](README_gl.md) -- [Leggi il “README” in italiano](README_it.md) -- [Irakurri README euskaraz](README_eu.md) +- [阅读中文(简体)的 README](README_zh_Hans.md) diff --git a/README.md b/README.md index e35345b..3c857dd 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ It shall NOT be edited by hand. [![Install Mongo Express with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=mongo-express) -*[Read this README is other languages.](./ALL_README.md)* +*[Read this README in other languages.](./ALL_README.md)* > *This package allows you to install Mongo Express quickly and simply on a YunoHost server.* > *If you don't have YunoHost, please consult [the guide](https://yunohost.org/install) to learn how to install it.* @@ -17,7 +17,7 @@ It shall NOT be edited by hand. ## Overview Mongo Express is a Web-based MongoDB admin interface written with Node.js, Express and Bootstrap3. -You can as well install a Mongo database - version 4, 5, 6 or 7 in your yunohost server if you want +You can as well install a Mongo database - version 4, 5 or 6 in your yunohost server if you want ### Features - Optionally installs Mongo server diff --git a/README_es.md b/README_es.md new file mode 100644 index 0000000..e07bba8 --- /dev/null +++ b/README_es.md @@ -0,0 +1,67 @@ + + +# Mongo Express para Yunohost + +[![Nivel de integración](https://dash.yunohost.org/integration/mongo-express.svg)](https://dash.yunohost.org/appci/app/mongo-express) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/mongo-express.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/mongo-express.maintain.svg) + +[![Instalar Mongo Express con Yunhost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=mongo-express) + +*[Leer este README en otros idiomas.](./ALL_README.md)* + +> *Este paquete le permite instalarMongo Express rapidamente y simplement en un servidor YunoHost.* +> *Si no tiene YunoHost, visita [the guide](https://yunohost.org/install) para aprender como instalarla.* + +## Descripción general + +Mongo Express is a Web-based MongoDB admin interface written with Node.js, Express and Bootstrap3. +You can as well install a Mongo database - version 4, 5 or 6 in your yunohost server if you want + +### Features +- Optionally installs Mongo server +- Connect to multiple databases +- View/add/delete databases +- View/add/rename/delete collections +- View/add/update/delete documents +- Preview audio/video/image assets inline in collection view +- Nested and/or large objects are collapsible for easy overview +- Async on-demand loading of big document properties (>100KB default) to keep collection view fast +- GridFS support - add/get/delete incredibly large files +- Use BSON data types in documents +- Mobile / Responsive - Bootstrap 3 works passably on small screens when you're in a bind +- Connect and authenticate to individual databases +- Authenticate as admin to view all databases +- Database blacklist/whitelist +- Custom CA and CA validation disabling +- Supports replica sets + + +**Versión actual:** 1.0.2~ynh2 + +## Capturas + +![Captura de Mongo Express](./doc/screenshots/document-edit.png) +![Captura de Mongo Express](./doc/screenshots/collection-view.png) +![Captura de Mongo Express](./doc/screenshots/databases-view.png) + +## Documentaciones y recursos + +- Repositorio del código fuente oficial de la aplicación : +- Catálogo YunoHost: +- Reportar un error: + +## Información para desarrolladores + +Por favor enviar sus correcciones a la [`branch testing`](https://github.com/YunoHost-Apps/mongo-express_ynh/tree/testing + +Para probar la rama `testing`, sigue asÍ: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/mongo-express_ynh/tree/testing --debug +o +sudo yunohost app upgrade mongo-express -u https://github.com/YunoHost-Apps/mongo-express_ynh/tree/testing --debug +``` + +**Mas informaciones sobre el empaquetado de aplicaciones:** diff --git a/README_eu.md b/README_eu.md index 63aca91..bcf0145 100644 --- a/README_eu.md +++ b/README_eu.md @@ -38,7 +38,7 @@ You can as well install a Mongo database - version 4, 5 or 6 in your yunohost se - Supports replica sets -**Paketatutako bertsioa:** 1.0.2~ynh1 +**Paketatutako bertsioa:** 1.0.2~ynh2 ## Pantaila-argazkiak diff --git a/README_fr.md b/README_fr.md index 639ae4e..10b1d5a 100644 --- a/README_fr.md +++ b/README_fr.md @@ -17,7 +17,7 @@ Il NE doit PAS être modifié à la main. ## Vue d’ensemble Mongo Express is a Web-based MongoDB admin interface written with Node.js, Express and Bootstrap3. -You can as well install a Mongo database - version 4, 5, 6 or 7 in your yunohost server if you want +You can as well install a Mongo database - version 4, 5 or 6 in your yunohost server if you want ### Features - Optionally installs Mongo server diff --git a/README_gl.md b/README_gl.md index 07ca4e5..a6f4d63 100644 --- a/README_gl.md +++ b/README_gl.md @@ -17,7 +17,7 @@ NON debe editarse manualmente. ## Vista xeral Mongo Express is a Web-based MongoDB admin interface written with Node.js, Express and Bootstrap3. -You can as well install a Mongo database - version 4, 5, 6 or 7 in your yunohost server if you want +You can as well install a Mongo database - version 4, 5 or 6 in your yunohost server if you want ### Features - Optionally installs Mongo server diff --git a/README_zh_Hans.md b/README_zh_Hans.md new file mode 100644 index 0000000..639e12f --- /dev/null +++ b/README_zh_Hans.md @@ -0,0 +1,67 @@ + + +# YunoHost 上的 Mongo Express + +[![集成程度](https://dash.yunohost.org/integration/mongo-express.svg)](https://dash.yunohost.org/appci/app/mongo-express) ![工作状态](https://ci-apps.yunohost.org/ci/badges/mongo-express.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/mongo-express.maintain.svg) + +[![使用 YunoHost 安装 Mongo Express](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=mongo-express) + +*[阅读此 README 的其它语言版本。](./ALL_README.md)* + +> *通过此软件包,您可以在 YunoHost 服务器上快速、简单地安装 Mongo Express。* +> *如果您还没有 YunoHost,请参阅[指南](https://yunohost.org/install)了解如何安装它。* + +## 概况 + +Mongo Express is a Web-based MongoDB admin interface written with Node.js, Express and Bootstrap3. +You can as well install a Mongo database - version 4, 5 or 6 in your yunohost server if you want + +### Features +- Optionally installs Mongo server +- Connect to multiple databases +- View/add/delete databases +- View/add/rename/delete collections +- View/add/update/delete documents +- Preview audio/video/image assets inline in collection view +- Nested and/or large objects are collapsible for easy overview +- Async on-demand loading of big document properties (>100KB default) to keep collection view fast +- GridFS support - add/get/delete incredibly large files +- Use BSON data types in documents +- Mobile / Responsive - Bootstrap 3 works passably on small screens when you're in a bind +- Connect and authenticate to individual databases +- Authenticate as admin to view all databases +- Database blacklist/whitelist +- Custom CA and CA validation disabling +- Supports replica sets + + +**分发版本:** 1.0.2~ynh2 + +## 截图 + +![Mongo Express 的截图](./doc/screenshots/document-edit.png) +![Mongo Express 的截图](./doc/screenshots/collection-view.png) +![Mongo Express 的截图](./doc/screenshots/databases-view.png) + +## 文档与资源 + +- 上游应用代码库: +- YunoHost 商店: +- 报告 bug: + +## 开发者信息 + +请向 [`testing` 分支](https://github.com/YunoHost-Apps/mongo-express_ynh/tree/testing) 发送拉取请求。 + +如要尝试 `testing` 分支,请这样操作: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/mongo-express_ynh/tree/testing --debug +或 +sudo yunohost app upgrade mongo-express -u https://github.com/YunoHost-Apps/mongo-express_ynh/tree/testing --debug +``` + +**有关应用打包的更多信息:**