From d1428a8b5a83cccd4f646e7a8b5787a2a0a13c0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 16 Sep 2022 08:05:14 +0200 Subject: [PATCH] Testing (#68) * 0.9.2 (#64) * 0.9.2 * Auto-update README * Update upgrade * Remove patch * Update install * Update install * Fix * Auto-update README * Fix * Revert "Remove patch" This reverts commit 760cfff3b3f7b25d449c412589a796c763f6e5a1. * Delete app-add-ldap-auth.patch * Fix * Create app-add-ldap-auth.patch * Update app-add-ldap-auth.patch * Update upgrade * Fix * Fix * Update install * Update upgrade * Update upgrade * Update upgrade * Update manifest.json * Update upgrade * Update upgrade * Update baikal.yaml * Update baikal.yaml * Update manifest.json * Update change_url * Update baikal.yaml * Update nginx.conf * Update upgrade * Update upgrade * Update upgrade * Update upgrade * Update scripts/_common.sh Co-authored-by: Kayou * Update nginx.conf * Update install * Update upgrade Co-authored-by: yunohost-bot Co-authored-by: Kayou * Update nginx.conf * deskey -> encrypt_key * Bullseye (#67) * set relative path for --keep opt * Auto-update README Co-authored-by: yunohost-bot * Reorder scripts (#69) * reorder scripts * Auto-update README * Add fr * Auto-update README Co-authored-by: yunohost-bot * Update manifest.json * Auto-update README * Update install * Update manifest.json * Auto-update README * Update DESCRIPTION.md * Auto-update README Co-authored-by: yunohost-bot Co-authored-by: Kayou Co-authored-by: yalh76 --- README.md | 8 +++++--- README_fr.md | 8 +++++--- doc/DESCRIPTION.md | 4 ++-- doc/DESCRIPTION_fr.md | 3 +++ manifest.json | 5 +++-- scripts/install | 17 ++++++++--------- scripts/restore | 28 ++++++++++++++-------------- scripts/upgrade | 18 +++++++++--------- 8 files changed, 49 insertions(+), 42 deletions(-) create mode 100644 doc/DESCRIPTION_fr.md diff --git a/README.md b/README.md index 45169ae..d8ce8c9 100644 --- a/README.md +++ b/README.md @@ -15,11 +15,12 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in ## Overview -[Baïkal](http://baikal-server.com/) is a lightweight CalDAV+CardDAV server. It offers an extensive web interface with easy management of users, address books and calendars. It is fast and simple to install and only needs a basic php capable server. The data can be stored in a MySQL or a SQLite database. +[Baïkal](http://baikal-server.com/) is a lightweight CalDAV+CardDAV server. It offers an extensive web interface with easy management of users, address books and calendars. It is fast and simple to install and only needs a basic PHP capable server. The data are stored in a MySQL database. -Baïkal allows to seamlessly access your contacts and calendars from every device. It is compatible with iOS, Mac OS X, DAVx5 on Android, Mozilla Thunderbird and every other CalDAV and CardDAV capable application. Protect your privacy by hosting calendars and contacts yourself - with Baïkal. +Baïkal allows to seamlessly access your contacts and calendars from every device. It is compatible with iOS, macOS, DAVx5 on Android, Mozilla Thunderbird and every other CalDAV and CardDAV capable application. Protect your privacy by hosting calendars and contacts yourself with Baïkal. + +**Shipped version:** 0.9.2~ynh2 -**Shipped version:** 0.9.2~ynh1 **Demo:** https://demo.yunohost.org/baikal/admin/ @@ -30,6 +31,7 @@ Baïkal allows to seamlessly access your contacts and calendars from every devic ## Documentation and resources * Official app website: +* Official user documentation: * Official admin documentation: * Upstream app code repository: * YunoHost documentation for this app: diff --git a/README_fr.md b/README_fr.md index e392cf5..790d012 100644 --- a/README_fr.md +++ b/README_fr.md @@ -15,11 +15,12 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour ## Vue d'ensemble -[Baïkal](http://baikal-server.com/) is a lightweight CalDAV+CardDAV server. It offers an extensive web interface with easy management of users, address books and calendars. It is fast and simple to install and only needs a basic php capable server. The data can be stored in a MySQL or a SQLite database. +[Baïkal](http://baikal-server.com/) est un serveur léger CalDAV+CardDAV. Il offre une interface Web étendue avec une gestion facile des utilisateurs, des carnets d'adresses et des calendriers. Il est rapide et simple à installer et ne nécessite qu'un serveur de base. Les données sont stockées dans une base de données MySQL. -Baïkal allows to seamlessly access your contacts and calendars from every device. It is compatible with iOS, Mac OS X, DAVx5 on Android, Mozilla Thunderbird and every other CalDAV and CardDAV capable application. Protect your privacy by hosting calendars and contacts yourself - with Baïkal. +Baïkal permet d'accéder de manière transparente à vos contacts et calendriers depuis n'importe quel appareil. Il est compatible avec iOS, macOS, DAVx5 sur Android, Mozilla Thunderbird et toutes les autres applications compatibles CalDAV et CardDAV. Protégez votre vie privée en hébergeant vous-même des calendriers et contacts avec Baïkal. + +**Version incluse :** 0.9.2~ynh2 -**Version incluse :** 0.9.2~ynh1 **Démo :** https://demo.yunohost.org/baikal/admin/ @@ -30,6 +31,7 @@ Baïkal allows to seamlessly access your contacts and calendars from every devic ## Documentations et ressources * Site officiel de l'app : +* Documentation officielle utilisateur : * Documentation officielle de l'admin : * Dépôt de code officiel de l'app : * Documentation YunoHost pour cette app : diff --git a/doc/DESCRIPTION.md b/doc/DESCRIPTION.md index 832cca8..22618a9 100644 --- a/doc/DESCRIPTION.md +++ b/doc/DESCRIPTION.md @@ -1,3 +1,3 @@ -[Baïkal](http://baikal-server.com/) is a lightweight CalDAV+CardDAV server. It offers an extensive web interface with easy management of users, address books and calendars. It is fast and simple to install and only needs a basic php capable server. The data can be stored in a MySQL or a SQLite database. +[Baïkal](http://baikal-server.com/) is a lightweight CalDAV+CardDAV server. It offers an extensive web interface with easy management of users, address books and calendars. It is fast and simple to install and only needs a basic PHP capable server. The data are stored in a MySQL database. -Baïkal allows to seamlessly access your contacts and calendars from every device. It is compatible with iOS, Mac OS X, DAVx5 on Android, Mozilla Thunderbird and every other CalDAV and CardDAV capable application. Protect your privacy by hosting calendars and contacts yourself - with Baïkal. \ No newline at end of file +Baïkal allows to seamlessly access your contacts and calendars from every device. It is compatible with iOS, macOS, DAVx5 on Android, Mozilla Thunderbird and every other CalDAV and CardDAV capable application. Protect your privacy by hosting calendars and contacts yourself with Baïkal. \ No newline at end of file diff --git a/doc/DESCRIPTION_fr.md b/doc/DESCRIPTION_fr.md new file mode 100644 index 0000000..39a251e --- /dev/null +++ b/doc/DESCRIPTION_fr.md @@ -0,0 +1,3 @@ +[Baïkal](http://baikal-server.com/) est un serveur léger CalDAV+CardDAV. Il offre une interface Web étendue avec une gestion facile des utilisateurs, des carnets d'adresses et des calendriers. Il est rapide et simple à installer et ne nécessite qu'un serveur de base. Les données sont stockées dans une base de données MySQL. + +Baïkal permet d'accéder de manière transparente à vos contacts et calendriers depuis n'importe quel appareil. Il est compatible avec iOS, macOS, DAVx5 sur Android, Mozilla Thunderbird et toutes les autres applications compatibles CalDAV et CardDAV. Protégez votre vie privée en hébergeant vous-même des calendriers et contacts avec Baïkal. \ No newline at end of file diff --git a/manifest.json b/manifest.json index 5a99050..5954e63 100644 --- a/manifest.json +++ b/manifest.json @@ -6,13 +6,14 @@ "en": "Lightweight CalDAV and CardDAV server", "fr": "Serveur CalDAV et CardDAV léger" }, - "version": "0.9.2~ynh1", + "version": "0.9.2~ynh2", "url": "http://baikal-server.com/", "upstream": { "license": "GPL-3.0", "website": "http://sabre.io/baikal/", "demo": "https://demo.yunohost.org/baikal/admin/", "admindoc": "https://sabre.io/dav/", + "userdoc": "https://github.com/AlexandreMonroche/BaikalGuide", "code": "https://github.com/sabre-io/Baikal" }, "license": "GPL-3.0", @@ -21,7 +22,7 @@ "email": "julien.malik@paraiso.me" }, "requirements": { - "yunohost": ">= 4.3.0" + "yunohost": ">= 11.0.9" }, "multi_instance": false, "services": [ diff --git a/scripts/install b/scripts/install index 9169e1b..3a0cd5f 100644 --- a/scripts/install +++ b/scripts/install @@ -95,14 +95,6 @@ chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" -#================================================= -# NGINX CONFIGURATION -#================================================= -ynh_script_progression --message="Configuring NGINX web server..." --weight=1 - -# Create a dedicated NGINX config -ynh_add_nginx_config - #================================================= # PHP-FPM CONFIGURATION #================================================= @@ -112,6 +104,14 @@ ynh_script_progression --message="Configuring PHP-FPM..." --weight=2 ynh_add_fpm_config phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) +#================================================= +# NGINX CONFIGURATION +#================================================= +ynh_script_progression --message="Configuring NGINX web server..." --weight=1 + +# Create a dedicated NGINX config +ynh_add_nginx_config + #================================================= # SPECIFIC SETUP #================================================= @@ -127,7 +127,6 @@ ynh_mysql_connect_as --user=$db_user --password="$db_pwd" --database=$db_name \ #================================================= ynh_script_progression --message="Adding a configuration file..." --weight=1 -#bk_conf="${final_path}/config/baikal.yaml" path=${path_url%/} ynh_add_config --template="../conf/baikal.yaml" --destination="$final_path/config/baikal.yaml" diff --git a/scripts/restore b/scripts/restore index e87e437..6c05c96 100644 --- a/scripts/restore +++ b/scripts/restore @@ -46,20 +46,6 @@ fi #================================================= # STANDARD RESTORATION STEPS -#================================================= -# REINSTALL DEPENDENCIES -#================================================= -ynh_script_progression --message="Reinstalling dependencies..." --weight=5 - -ynh_install_app_dependencies $pkg_dependencies - -#================================================= -# RESTORE THE NGINX CONFIGURATION -#================================================= -ynh_script_progression --message="Restoring the NGINX web server configuration..." --weight=1 - -ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" - #================================================= # RECREATE THE DEDICATED USER #================================================= @@ -96,6 +82,13 @@ ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./ chown $app: "$final_path/config/baikal.yaml" chmod 640 "$final_path/config/baikal.yaml" +#================================================= +# REINSTALL DEPENDENCIES +#================================================= +ynh_script_progression --message="Reinstalling dependencies..." --weight=5 + +ynh_install_app_dependencies $pkg_dependencies + #================================================= # RESTORE THE PHP-FPM CONFIGURATION #================================================= @@ -103,6 +96,13 @@ ynh_script_progression --message="Restoring the PHP-FPM configuration..." --weig ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" +#================================================= +# RESTORE THE NGINX CONFIGURATION +#================================================= +ynh_script_progression --message="Restoring the NGINX web server configuration..." --weight=1 + +ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" + #================================================= # GENERIC FINALIZATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index f92c1e8..6464025 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -101,21 +101,13 @@ if [ "$upgrade_type" == "UPGRADE_APP" ] then ynh_script_progression --message="Upgrading source files..." --weight=3 - ynh_setup_source --dest_dir="$final_path" --keep="$final_path/Specific $final_path/config" + ynh_setup_source --dest_dir="$final_path" --keep="Specific config" fi chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" -#================================================= -# NGINX CONFIGURATION -#================================================= -ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=1 - -# Create a dedicated NGINX config -ynh_add_nginx_config - #================================================= # UPGRADE DEPENDENCIES #================================================= @@ -131,6 +123,14 @@ ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=2 # Create a dedicated PHP-FPM config ynh_add_fpm_config +#================================================= +# NGINX CONFIGURATION +#================================================= +ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=1 + +# Create a dedicated NGINX config +ynh_add_nginx_config + #================================================= # SPECIFIC UPGRADE #=================================================