From 553b3b99b17ffa471e440f00bf1bf8024a5c5179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Tue, 2 Apr 2024 15:03:31 +0200 Subject: [PATCH 01/10] Add Salamandar as maintainer --- manifest.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index dc1d67a..aa5742a 100644 --- a/manifest.toml +++ b/manifest.toml @@ -9,7 +9,7 @@ description.fr = "Serveur CalDAV et CardDAV léger" version = "0.9.4~ynh1" -maintainers = [] +maintainers = ["salamandar"] [upstream] license = "GPL-3.0" From d5def51bbafe5feba1247967bfb46398c13eee52 Mon Sep 17 00:00:00 2001 From: Leeloo <164774099+criticalsool@users.noreply.github.com> Date: Sun, 12 May 2024 17:19:11 +0200 Subject: [PATCH 02/10] Update user documentation links (#100) * Update EN user documentation link * Update user documentation link * Update documentation link * Update manisfest user doc --- README.md | 2 +- README_eu.md | 2 +- README_fr.md | 2 +- manifest.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index db96675..d5acd59 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Baïkal is a lightweight CalDAV+CardDAV server. It offers an extensive web inter ## Documentation and resources - Official app website: -- Official user documentation: +- Official user documentation: - Official admin documentation: - Upstream app code repository: - YunoHost Store: diff --git a/README_eu.md b/README_eu.md index bfa14b1..3f5cfa5 100644 --- a/README_eu.md +++ b/README_eu.md @@ -29,7 +29,7 @@ Baïkal is a lightweight CalDAV+CardDAV server. It offers an extensive web inter ## Dokumentazioa eta baliabideak - Aplikazioaren webgune ofiziala: -- Erabiltzaileen dokumentazio ofiziala: +- Erabiltzaileen dokumentazio ofiziala: - Administratzaileen dokumentazio ofiziala: - Jatorrizko aplikazioaren kode-gordailua: - YunoHost Denda: diff --git a/README_fr.md b/README_fr.md index b412c57..1ef166d 100644 --- a/README_fr.md +++ b/README_fr.md @@ -29,7 +29,7 @@ Baïkal est un serveur léger CalDAV+CardDAV. Il offre une interface Web étendu ## Documentations et ressources - Site officiel de l’app : -- Documentation officielle utilisateur : +- Documentation officielle utilisateur : - Documentation officielle de l’admin : - Dépôt de code officiel de l’app : - YunoHost Store : diff --git a/manifest.toml b/manifest.toml index aa5742a..87039de 100644 --- a/manifest.toml +++ b/manifest.toml @@ -16,7 +16,7 @@ license = "GPL-3.0" website = "https://sabre.io/baikal/" demo = "https://demo.yunohost.org/baikal/admin/" admindoc = "https://sabre.io/dav/" -userdoc = "https://github.com/AlexandreMonroche/BaikalGuide" +userdoc = "https://sabre.io/baikal/install/" code = "https://github.com/sabre-io/Baikal" [integration] From b7be000d99ebe3abd654e9f643b4f965aed40fd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 9 Jun 2024 22:36:48 +0200 Subject: [PATCH 03/10] Update upgrade --- scripts/upgrade | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index b3ea522..cb2c788 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -9,22 +9,12 @@ source _common.sh source /usr/share/yunohost/helpers -#================================================= -# CHECK VERSION -#================================================= - -upgrade_type=$(ynh_check_app_version_changed) - #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= +ynh_script_progression --message="Upgrading source files..." --weight=3 -if [ "$upgrade_type" == "UPGRADE_APP" ] -then - ynh_script_progression --message="Upgrading source files..." --weight=3 - - ynh_setup_source --dest_dir="$install_dir" --keep="config/baikal.yaml" -fi +ynh_setup_source --dest_dir="$install_dir" --keep="config/baikal.yaml" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" @@ -49,19 +39,15 @@ ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failreg #================================================= # UPGRADE BAIKAL CONFIGURATION #================================================= +ynh_script_progression --message="Upgrading the configuration file..." --weight=2 # We keep this to allow upgrade the config file in case it needs to be changed. -if [ "$upgrade_type" == "UPGRADE_APP" ] -then - ynh_script_progression --message="Upgrading the configuration file..." --weight=2 - - timezone=$(cat /etc/timezone) - path=${path%/} - ynh_add_config --template="baikal.yaml" --destination="$install_dir/config/baikal.yaml" - chown $app: "$install_dir/config/baikal.yaml" - chmod 640 "$install_dir/config/baikal.yaml" -fi +timezone=$(cat /etc/timezone) +path=${path%/} +ynh_add_config --template="baikal.yaml" --destination="$install_dir/config/baikal.yaml" +chown $app: "$install_dir/config/baikal.yaml" +chmod 640 "$install_dir/config/baikal.yaml" #================================================= # END OF SCRIPT From 1be408367b45c1eca91044543113515416526b42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 9 Jun 2024 22:39:01 +0200 Subject: [PATCH 04/10] cleaning --- scripts/backup | 10 +--------- scripts/install | 5 ----- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/scripts/backup b/scripts/backup index 04eed75..87d844b 100644 --- a/scripts/backup +++ b/scripts/backup @@ -22,21 +22,13 @@ ynh_print_info --message="Declaring files to be backed up..." ynh_backup --src_path="$install_dir" #================================================= -# BACKUP THE NGINX CONFIGURATION +# SYSTEM CONFIGURATION #================================================= ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" -#================================================= -# BACKUP THE PHP-FPM CONFIGURATION -#================================================= - ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" -#================================================= -# BACKUP FAIL2BAN CONFIGURATION -#================================================= - ynh_backup --src_path="/etc/fail2ban/jail.d/$app.conf" ynh_backup --src_path="/etc/fail2ban/filter.d/$app.conf" diff --git a/scripts/install b/scripts/install index d9ba7fc..598a764 100644 --- a/scripts/install +++ b/scripts/install @@ -55,11 +55,6 @@ ynh_add_fpm_config ynh_add_nginx_config -#================================================= -# SETUP FAIL2BAN -#================================================= -ynh_script_progression --message="Configuring fail2ban..." --weight=1 - # Create the logfile, required before configuring fail2ban touch "/var/log/nginx/${domain}-error.log" From c216e673f31facd914576550bf3c643607e55db8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 9 Jun 2024 22:47:00 +0200 Subject: [PATCH 05/10] Update upgrade --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index cb2c788..1fd14a7 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -20,9 +20,9 @@ chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" #================================================= -# SYSTEM CONFIGURATION +# REAPPLY SYSTEM CONFIGURATIONS #================================================= -ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=2 +ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1 ynh_add_fpm_config From 7f317fb2ff9b76e8ce48e7e1e404e0d0d0affa8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 9 Jun 2024 22:49:07 +0200 Subject: [PATCH 06/10] Update upgrade --- scripts/upgrade | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 1fd14a7..04160fe 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -9,6 +9,8 @@ source _common.sh source /usr/share/yunohost/helpers +timezone=$(cat /etc/timezone) + #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= @@ -43,7 +45,6 @@ ynh_script_progression --message="Upgrading the configuration file..." --weight= # We keep this to allow upgrade the config file in case it needs to be changed. -timezone=$(cat /etc/timezone) path=${path%/} ynh_add_config --template="baikal.yaml" --destination="$install_dir/config/baikal.yaml" chown $app: "$install_dir/config/baikal.yaml" From a5263eb0d8447f63357c10fd9ab418edc04e9eef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Thu, 20 Jun 2024 13:12:22 +0200 Subject: [PATCH 07/10] Comments cleanup --- scripts/_common.sh | 2 -- scripts/backup | 2 -- scripts/change_url | 6 ------ scripts/install | 6 +----- scripts/remove | 2 -- scripts/restore | 4 ---- scripts/upgrade | 2 -- 7 files changed, 1 insertion(+), 23 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index f74169b..0cb0789 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -3,8 +3,6 @@ #================================================= # COMMON VARIABLES #================================================= -# PHP APP SPECIFIC -#================================================= #================================================= # PERSONAL HELPERS diff --git a/scripts/backup b/scripts/backup index 87d844b..2f4bc70 100644 --- a/scripts/backup +++ b/scripts/backup @@ -1,7 +1,5 @@ #!/bin/bash -#================================================= -# GENERIC START #================================================= # IMPORT GENERIC HELPERS #================================================= diff --git a/scripts/change_url b/scripts/change_url index 2ad973b..cb2b45a 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -1,7 +1,5 @@ #!/bin/bash -#================================================= -# GENERIC STARTING #================================================= # IMPORT GENERIC HELPERS #================================================= @@ -22,8 +20,6 @@ then fi fi -#================================================= -# STANDARD MODIFICATIONS #================================================= # MODIFY URL IN NGINX CONF #================================================= @@ -31,8 +27,6 @@ ynh_script_progression --message="Updating NGINX web server configuration..." -- ynh_change_url_nginx_config -#================================================= -# SPECIFIC MODIFICATIONS #================================================= # UPDATE CONFIGURATION #================================================= diff --git a/scripts/install b/scripts/install index 598a764..49e9db8 100644 --- a/scripts/install +++ b/scripts/install @@ -1,7 +1,5 @@ #!/bin/bash -#================================================= -# GENERIC START #================================================= # IMPORT GENERIC HELPERS #================================================= @@ -10,7 +8,7 @@ source _common.sh source /usr/share/yunohost/helpers #================================================= -# RETRIEVE ARGUMENTS FROM THE MANIFEST +# INITIALIZE AND STORE SETTINGS #================================================= timezone=$(cat /etc/timezone) @@ -61,8 +59,6 @@ touch "/var/log/nginx/${domain}-error.log" # Create a dedicated fail2ban config ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failregex='"PHP message: user \(name stripped-out\) authentication failure for Baikal" while reading response header from upstream, client: ' -#================================================= -# SPECIFIC SETUP #================================================= # INITIALIZE DATABASE #================================================= diff --git a/scripts/remove b/scripts/remove index 8d28c8c..216843d 100644 --- a/scripts/remove +++ b/scripts/remove @@ -1,7 +1,5 @@ #!/bin/bash -#================================================= -# GENERIC START #================================================= # IMPORT GENERIC HELPERS #================================================= diff --git a/scripts/restore b/scripts/restore index 77daf9b..78c0f66 100644 --- a/scripts/restore +++ b/scripts/restore @@ -1,7 +1,5 @@ #!/bin/bash -#================================================= -# GENERIC START #================================================= # IMPORT GENERIC HELPERS #================================================= @@ -55,8 +53,6 @@ ynh_restore_file --origin_path="/etc/fail2ban/jail.d/$app.conf" ynh_restore_file --origin_path="/etc/fail2ban/filter.d/$app.conf" ynh_systemd_action --action=restart --service_name=fail2ban -#================================================= -# GENERIC FINALIZATION #================================================= # RELOAD NGINX AND PHP-FPM OR THE APP SERVICE #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 04160fe..25e2943 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -1,7 +1,5 @@ #!/bin/bash -#================================================= -# GENERIC START #================================================= # IMPORT GENERIC HELPERS #================================================= From de51dfb9c2ef6701c682006167a70e6527520959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Thu, 20 Jun 2024 13:13:03 +0200 Subject: [PATCH 08/10] quoting --- scripts/install | 13 ++++--------- scripts/restore | 2 +- scripts/upgrade | 2 +- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/scripts/install b/scripts/install index 49e9db8..0f11817 100644 --- a/scripts/install +++ b/scripts/install @@ -15,6 +15,9 @@ timezone=$(cat /etc/timezone) encrypt_key=$(ynh_string_random 24) password_hash=$(echo -n admin:BaikalDAV:$password | sha256sum | cut -d ' ' -f 1) +ynh_app_setting_set --app="$app" --key="encrypt_key" --value="$encrypt_key" +ynh_app_setting_set --app="$app" --key="password_hash" --value="$password_hash" + #================================================= # CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS #================================================= @@ -26,14 +29,6 @@ then ynh_die --message="Another app already uses the domain $domain to serve a calDAV/cardDAV feature. Please use another domain." fi -#================================================= -# STORE SETTINGS FROM MANIFEST -#================================================= -ynh_script_progression --message="Storing installation settings..." --weight=2 - -ynh_app_setting_set --app=$app --key=encrypt_key --value="$encrypt_key" -ynh_app_setting_set --app=$app --key=password_hash --value="$password_hash" - #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= @@ -42,7 +37,7 @@ ynh_script_progression --message="Setting up source files..." --weight=8 ynh_setup_source --dest_dir="$install_dir" chmod -R o-rwx "$install_dir" -chown -R $app:www-data "$install_dir" +chown -R "$app:www-data" "$install_dir" #================================================= # SYSTEM CONFIGURATION diff --git a/scripts/restore b/scripts/restore index 78c0f66..47121dd 100644 --- a/scripts/restore +++ b/scripts/restore @@ -58,7 +58,7 @@ ynh_systemd_action --action=restart --service_name=fail2ban #================================================= ynh_script_progression --message="Reloading NGINX web server and $app's service..." --weight=1 -ynh_systemd_action --service_name=php$phpversion-fpm --action=reload +ynh_systemd_action --service_name="php$phpversion-fpm" --action=reload ynh_systemd_action --service_name=nginx --action=reload #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 25e2943..c443ba4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -17,7 +17,7 @@ ynh_script_progression --message="Upgrading source files..." --weight=3 ynh_setup_source --dest_dir="$install_dir" --keep="config/baikal.yaml" chmod -R o-rwx "$install_dir" -chown -R $app:www-data "$install_dir" +chown -R "$app:www-data" "$install_dir" #================================================= # REAPPLY SYSTEM CONFIGURATIONS From 590891e1858f7ad63f644b10da272b7b69057a97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Thu, 20 Jun 2024 13:37:02 +0200 Subject: [PATCH 09/10] Bump revision --- manifest.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index 87039de..d214582 100644 --- a/manifest.toml +++ b/manifest.toml @@ -7,7 +7,7 @@ name = "Baïkal" description.en = "Lightweight CalDAV and CardDAV server" description.fr = "Serveur CalDAV et CardDAV léger" -version = "0.9.4~ynh1" +version = "0.9.4~ynh2" maintainers = ["salamandar"] From 7dfe912adb4ce8c41e1fa53806d8c0704e7d8481 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Thu, 20 Jun 2024 11:37:08 +0000 Subject: [PATCH 10/10] Auto-update READMEs --- README.md | 2 +- README_es.md | 4 ++-- README_eu.md | 2 +- README_fr.md | 4 ++-- README_gl.md | 4 ++-- README_zh_Hans.md | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index d5acd59..9b9ffeb 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ It shall NOT be edited by hand. Baïkal 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, 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.4~ynh1 +**Shipped version:** 0.9.4~ynh2 **Demo:** diff --git a/README_es.md b/README_es.md index 8bf7fdb..e45ec54 100644 --- a/README_es.md +++ b/README_es.md @@ -18,7 +18,7 @@ No se debe editar a mano. Baïkal 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, 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. -**Versión actual:** 0.9.4~ynh1 +**Versión actual:** 0.9.4~ynh2 **Demo:** @@ -29,7 +29,7 @@ Baïkal is a lightweight CalDAV+CardDAV server. It offers an extensive web inter ## Documentaciones y recursos - Sitio web oficial: -- Documentación usuario oficial: +- Documentación usuario oficial: - Documentación administrador oficial: - Repositorio del código fuente oficial de la aplicación : - Catálogo YunoHost: diff --git a/README_eu.md b/README_eu.md index 3f5cfa5..4610541 100644 --- a/README_eu.md +++ b/README_eu.md @@ -18,7 +18,7 @@ EZ editatu eskuz. Baïkal 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, 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. -**Paketatutako bertsioa:** 0.9.4~ynh1 +**Paketatutako bertsioa:** 0.9.4~ynh2 **Demoa:** diff --git a/README_fr.md b/README_fr.md index 1ef166d..5da83b1 100644 --- a/README_fr.md +++ b/README_fr.md @@ -18,7 +18,7 @@ Il NE doit PAS être modifié à la main. Baïkal 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. -**Version incluse :** 0.9.4~ynh1 +**Version incluse :** 0.9.4~ynh2 **Démo :** @@ -29,7 +29,7 @@ Baïkal est un serveur léger CalDAV+CardDAV. Il offre une interface Web étendu ## Documentations et ressources - Site officiel de l’app : -- Documentation officielle utilisateur : +- Documentation officielle utilisateur : - Documentation officielle de l’admin : - Dépôt de code officiel de l’app : - YunoHost Store : diff --git a/README_gl.md b/README_gl.md index caa8032..534d7a2 100644 --- a/README_gl.md +++ b/README_gl.md @@ -18,7 +18,7 @@ NON debe editarse manualmente. Baïkal 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, 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. -**Versión proporcionada:** 0.9.4~ynh1 +**Versión proporcionada:** 0.9.4~ynh2 **Demo:** @@ -29,7 +29,7 @@ Baïkal is a lightweight CalDAV+CardDAV server. It offers an extensive web inter ## Documentación e recursos - Web oficial da app: -- Documentación oficial para usuarias: +- Documentación oficial para usuarias: - Documentación oficial para admin: - Repositorio de orixe do código: - Tenda YunoHost: diff --git a/README_zh_Hans.md b/README_zh_Hans.md index 2ed70aa..7d15fb4 100644 --- a/README_zh_Hans.md +++ b/README_zh_Hans.md @@ -18,7 +18,7 @@ Baïkal 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, 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. -**分发版本:** 0.9.4~ynh1 +**分发版本:** 0.9.4~ynh2 **演示:** @@ -29,7 +29,7 @@ Baïkal is a lightweight CalDAV+CardDAV server. It offers an extensive web inter ## 文档与资源 - 官方应用网站: -- 官方用户文档: +- 官方用户文档: - 官方管理文档: - 上游应用代码库: - YunoHost 商店: