diff --git a/README.md b/README.md
index 4eeb900..e1328d9 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@ It shall NOT be edited by hand.
# Roundcube for YunoHost
-[](https://dash.yunohost.org/appci/app/roundcube)  
+[](https://dash.yunohost.org/appci/app/roundcube)  
[](https://install-app.yunohost.org/?app=roundcube)
*[Lire ce readme en français.](./README_fr.md)*
@@ -22,8 +22,8 @@ Roundcube is a browser-based multilingual IMAP client with an application-like u
In addition to Roundcube core features, the following are made available with this package:
* Synchronize your email aliases as identities in Roundcube
- * Install the [contextmenu](https://plugins.roundcube.net/packages/johndoh/contextmenu) and [automatic addressbook](https://plugins.roundcube.net/packages/sblaisot/automatic_addressbook) plugins by default
- * Allow to install the [CardDAV](https://plugins.roundcube.net/packages/roundcube/carddav) (address book) synchronization plugin at the installation - note that if you have installed Nextcloud or Baïkal, it will automatically add the corresponding and existing address book.
+ * Install the [contextmenu](https://packagist.org/packages/johndoh/contextmenu) and [automatic addressbook](https://packagist.org/packages/projectmyst/automatic_addressbook) plugins by default
+ * Allow to install the [CardDAV](https://packagist.org/packages/roundcube/carddav) (address book) synchronization plugin at the installation - note that if you have installed Nextcloud or Baïkal, it will automatically add the corresponding and existing address book.
* Support for PGP encryption with Enigma plugin by default.
@@ -33,7 +33,7 @@ In addition to Roundcube core features, the following are made available with th
## Screenshots
-
+
## Disclaimers / important information
@@ -51,7 +51,7 @@ You can also install other plugins - which will not be removed with upgrades. To
##### From the Plugin Repository
-Let's say for example that we want to install the [html5_notifier](https://plugins.roundcube.net/packages/kitist/html5_notifier) plugin.
+Let's say for example that we want to install the [html5_notifier](https://packagist.org/packages/kitist/html5_notifier) plugin.
1. Connect to your server as root using SSH:
```
@@ -84,21 +84,22 @@ You can also download the plugin and put it under the `plugins/` directory. In t
## Documentation and resources
-* Official app website: https://roundcube.net/
-* Official admin documentation: https://github.com/roundcube/roundcubemail/wiki
-* Upstream app code repository: https://github.com/roundcube/roundcubemail
-* YunoHost documentation for this app: https://yunohost.org/app_roundcube
-* Report a bug: https://github.com/YunoHost-Apps/roundcube_ynh/issues
+* Official app website:
+* Official admin documentation:
+* Upstream app code repository:
+* YunoHost documentation for this app:
+* Report a bug:
## Developer info
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/roundcube_ynh/tree/testing).
To try the testing branch, please proceed like that.
-```
+
+``` bash
sudo yunohost app install https://github.com/YunoHost-Apps/roundcube_ynh/tree/testing --debug
or
sudo yunohost app upgrade roundcube -u https://github.com/YunoHost-Apps/roundcube_ynh/tree/testing --debug
```
-**More info regarding app packaging:** https://yunohost.org/packaging_apps
\ No newline at end of file
+**More info regarding app packaging:**
diff --git a/README_fr.md b/README_fr.md
index 149343a..6366152 100644
--- a/README_fr.md
+++ b/README_fr.md
@@ -1,10 +1,14 @@
+
+
# Roundcube pour YunoHost
-[](https://dash.yunohost.org/appci/app/roundcube)  
+[](https://dash.yunohost.org/appci/app/roundcube)  
[](https://install-app.yunohost.org/?app=roundcube)
*[Read this readme in english.](./README.md)*
-*[Lire ce readme en français.](./README_fr.md)*
> *Ce package vous permet d'installer Roundcube 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.*
@@ -18,9 +22,9 @@ Roundcube est un client IMAP multilingue basé sur un navigateur avec une interf
En plus des fonctionnalités principales de Roundcube, les éléments suivants sont disponibles avec ce paquet :
* Synchronisez vos alias de messagerie en tant qu'identités dans Roundcube.
- * Installation des plugins [contextmenu](https://plugins.roundcube.net/packages/johndoh/contextmenu)
- et [automatic addressbook](https://plugins.roundcube.net/packages/sblaisot/automatic_addressbook) par default.
- * Permettre d'installer [CardDAV](https://plugins.roundcube.net/packages/roundcube/carddav) (carnet d'adresses) de synchronisation à l'installation - notez que si vous avez installé Nextcloud ou Baïkal, il ajoutera automatiquement le carnet d'adresses correspondant.
+ * Installation des plugins [contextmenu](https://packagist.org/packages/johndoh/contextmenu)
+ et [automatic addressbook](https://packagist.org/packages/projectmyst/automatic_addressbook) par default.
+ * Permettre d'installer [CardDAV](https://packagist.org/packages/roundcube/carddav) (carnet d'adresses) de synchronisation à l'installation - notez que si vous avez installé Nextcloud ou Baïkal, il ajoutera automatiquement le carnet d'adresses correspondant.
* Prise en charge du chiffrement PGP avec le plugin Enigma installé par default.
@@ -30,7 +34,7 @@ En plus des fonctionnalités principales de Roundcube, les éléments suivants s
## Captures d'écran
-
+
## Avertissements / informations importantes
@@ -48,7 +52,7 @@ Vous pouvez également installer d'autres plugins (qui ne seront pas supprimés
##### Depuis le dépôt de plugins
-Si, par exemple, vous voulez installer le plugin [html5_notifier](https://plugins.roundcube.net/packages/kitist/html5_notifier).
+Si, par exemple, vous voulez installer le plugin [html5_notifier](https://packagist.org/packages/kitist/html5_notifier).
1. Connectez-vous en SSH à votre serveur en tant que root :
```
@@ -81,21 +85,22 @@ Vous pouvez également télécharger le plugin et le placer dans le répertoire
## Documentations et ressources
-* Site officiel de l'app : https://roundcube.net/
-* Documentation officielle de l'admin : https://github.com/roundcube/roundcubemail/wiki
-* Dépôt de code officiel de l'app : https://github.com/roundcube/roundcubemail
-* Documentation YunoHost pour cette app : https://yunohost.org/app_roundcube
-* Signaler un bug : https://github.com/YunoHost-Apps/roundcube_ynh/issues
+* Site officiel de l'app :
+* Documentation officielle de l'admin :
+* Dépôt de code officiel de l'app :
+* Documentation YunoHost pour cette app :
+* Signaler un bug :
## Informations pour les développeurs
Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/roundcube_ynh/tree/testing).
Pour essayer la branche testing, procédez comme suit.
-```
+
+``` bash
sudo yunohost app install https://github.com/YunoHost-Apps/roundcube_ynh/tree/testing --debug
ou
sudo yunohost app upgrade roundcube -u https://github.com/YunoHost-Apps/roundcube_ynh/tree/testing --debug
```
-**Plus d'infos sur le packaging d'applications :** https://yunohost.org/packaging_apps
\ No newline at end of file
+**Plus d'infos sur le packaging d'applications :**
diff --git a/doc/DESCRIPTION.md b/doc/DESCRIPTION.md
index 35ccd0b..1ecb1bf 100644
--- a/doc/DESCRIPTION.md
+++ b/doc/DESCRIPTION.md
@@ -5,6 +5,6 @@ Roundcube is a browser-based multilingual IMAP client with an application-like u
In addition to Roundcube core features, the following are made available with this package:
* Synchronize your email aliases as identities in Roundcube
- * Install the [contextmenu](https://plugins.roundcube.net/packages/johndoh/contextmenu) and [automatic addressbook](https://plugins.roundcube.net/packages/sblaisot/automatic_addressbook) plugins by default
- * Allow to install the [CardDAV](https://plugins.roundcube.net/packages/roundcube/carddav) (address book) synchronization plugin at the installation - note that if you have installed Nextcloud or Baïkal, it will automatically add the corresponding and existing address book.
+ * Install the [contextmenu](https://packagist.org/packages/johndoh/contextmenu) and [automatic addressbook](https://packagist.org/packages/projectmyst/automatic_addressbook) plugins by default
+ * Allow to install the [CardDAV](https://packagist.org/packages/roundcube/carddav) (address book) synchronization plugin at the installation - note that if you have installed Nextcloud or Baïkal, it will automatically add the corresponding and existing address book.
* Support for PGP encryption with Enigma plugin by default.
diff --git a/doc/DESCRIPTION_fr.md b/doc/DESCRIPTION_fr.md
index 3e2f030..be0b7b4 100644
--- a/doc/DESCRIPTION_fr.md
+++ b/doc/DESCRIPTION_fr.md
@@ -5,7 +5,7 @@ Roundcube est un client IMAP multilingue basé sur un navigateur avec une interf
En plus des fonctionnalités principales de Roundcube, les éléments suivants sont disponibles avec ce paquet :
* Synchronisez vos alias de messagerie en tant qu'identités dans Roundcube.
- * Installation des plugins [contextmenu](https://plugins.roundcube.net/packages/johndoh/contextmenu)
- et [automatic addressbook](https://plugins.roundcube.net/packages/sblaisot/automatic_addressbook) par default.
- * Permettre d'installer [CardDAV](https://plugins.roundcube.net/packages/roundcube/carddav) (carnet d'adresses) de synchronisation à l'installation - notez que si vous avez installé Nextcloud ou Baïkal, il ajoutera automatiquement le carnet d'adresses correspondant.
+ * Installation des plugins [contextmenu](https://packagist.org/packages/johndoh/contextmenu)
+ et [automatic addressbook](https://packagist.org/packages/projectmyst/automatic_addressbook) par default.
+ * Permettre d'installer [CardDAV](https://packagist.org/packages/roundcube/carddav) (carnet d'adresses) de synchronisation à l'installation - notez que si vous avez installé Nextcloud ou Baïkal, il ajoutera automatiquement le carnet d'adresses correspondant.
* Prise en charge du chiffrement PGP avec le plugin Enigma installé par default.
diff --git a/doc/DISCLAIMER.md b/doc/DISCLAIMER.md
index f7987e0..935843a 100644
--- a/doc/DISCLAIMER.md
+++ b/doc/DISCLAIMER.md
@@ -12,7 +12,7 @@ You can also install other plugins - which will not be removed with upgrades. To
##### From the Plugin Repository
-Let's say for example that we want to install the [html5_notifier](https://plugins.roundcube.net/packages/kitist/html5_notifier) plugin.
+Let's say for example that we want to install the [html5_notifier](https://packagist.org/packages/kitist/html5_notifier) plugin.
1. Connect to your server as root using SSH:
```
diff --git a/doc/DISCLAIMER_fr.md b/doc/DISCLAIMER_fr.md
index 60d456f..8c5d183 100644
--- a/doc/DISCLAIMER_fr.md
+++ b/doc/DISCLAIMER_fr.md
@@ -12,7 +12,7 @@ Vous pouvez également installer d'autres plugins (qui ne seront pas supprimés
##### Depuis le dépôt de plugins
-Si, par exemple, vous voulez installer le plugin [html5_notifier](https://plugins.roundcube.net/packages/kitist/html5_notifier).
+Si, par exemple, vous voulez installer le plugin [html5_notifier](https://packagist.org/packages/kitist/html5_notifier).
1. Connectez-vous en SSH à votre serveur en tant que root :
```
diff --git a/scripts/_common.sh b/scripts/_common.sh
index 9781eb9..970cf36 100644
--- a/scripts/_common.sh
+++ b/scripts/_common.sh
@@ -10,12 +10,12 @@ YNH_PHP_VERSION="8.0"
pkg_dependencies="php-pear php${YNH_PHP_VERSION}-ldap php${YNH_PHP_VERSION}-mysql php${YNH_PHP_VERSION}-cli php${YNH_PHP_VERSION}-intl php${YNH_PHP_VERSION}-json php${YNH_PHP_VERSION}-zip php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-dom php${YNH_PHP_VERSION}-curl"
# Composer version
-YNH_COMPOSER_VERSION=2.2.7
+YNH_COMPOSER_VERSION=2.3.7
# Plugins version
-contextmenu_version=3.3
+contextmenu_version=3.3.1
automatic_addressbook_version=v0.4.3
-carddav_version=4.3.0
+carddav_version=4.4.1
#=================================================
# EXPERIMENTAL HELPERS
diff --git a/scripts/install b/scripts/install
index ca145cc..8580532 100644
--- a/scripts/install
+++ b/scripts/install
@@ -58,7 +58,7 @@ ynh_script_progression --message="Creating a MySQL database..." --weight=2
db_name=$(ynh_sanitize_dbid --db_name=$app)
db_user=$db_name
ynh_app_setting_set --app=$app --key=db_name --value=$db_name
-ynh_mysql_setup_db --db_user=$db_name --db_name=$db_name
+ynh_mysql_setup_db --db_user=$db_user --db_name=$db_name
#=================================================
# INSTALL DEPENDENCIES
@@ -123,7 +123,7 @@ ynh_install_composer
#=================================================
ynh_script_progression --message="Initializing database..." --weight=3
-ynh_mysql_connect_as --user="$db_name" --password="$db_pwd" --database="$db_name" \
+ynh_mysql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name" \
< "$final_path/SQL/mysql.initial.sql"
#=================================================
diff --git a/scripts/remove b/scripts/remove
index 2c7f294..dd5bd70 100644
--- a/scripts/remove
+++ b/scripts/remove
@@ -18,6 +18,7 @@ app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get --app=$app --key=domain)
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
+db_user=$db_name
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
#=================================================
@@ -26,7 +27,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
ynh_script_progression --message="Removing the MySQL database..." --weight=2
# Remove a database if it exists, along with the associated user
-ynh_mysql_remove_db --db_user=$db_name --db_name=$db_name
+ynh_mysql_remove_db --db_user=$db_user --db_name=$db_name
#=================================================
# REMOVE APP MAIN DIR
diff --git a/scripts/restore b/scripts/restore
index 8022c1b..25c084d 100644
--- a/scripts/restore
+++ b/scripts/restore
@@ -93,8 +93,8 @@ ynh_install_app_dependencies $pkg_dependencies
ynh_script_progression --message="Restoring the MySQL database..." --weight=5
db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd)
-ynh_mysql_setup_db --db_user=$db_name --db_name=$db_name --db_pwd=$db_pwd
-ynh_mysql_connect_as --user=$db_name --password=$db_pwd --database=$db_name < ./db.sql
+ynh_mysql_setup_db --db_user=$db_user --db_name=$db_name --db_pwd=$db_pwd
+ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql
#=================================================
# GENERIC FINALIZATION