From 88e6ffa3fbd666ac1983010a3a8c7fc25f9c00f0 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Sun, 29 Mar 2020 13:47:34 +0200 Subject: [PATCH 01/22] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c43a620..f41adda 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Kanboard for Yunohost -[![Integration level](https://dash.yunohost.org/integration/kanboard.svg)](https://dash.yunohost.org/appci/app/kanboard) +[![Integration level](https://dash.yunohost.org/integration/kanboard.svg)](https://dash.yunohost.org/appci/app/kanboard) ![](https://ci-apps.yunohost.org/ci/badges/kanboard.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/kanboard.maintain.svg) [![Install Kanboard with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=kanboard) > *This package allow you to install Kanboard quickly and simply on a YunoHost server. From 9044d51e939ad6b95b96e5ed17bb17caf7585109 Mon Sep 17 00:00:00 2001 From: Jimmy Monin Date: Sun, 7 Jun 2020 19:20:26 +0200 Subject: [PATCH 02/22] Upgrade to upstream version 1.2.14 / use PHP 7.3 --- README.md | 2 +- conf/app.src | 4 ++-- conf/config.php | 11 +++++++++++ conf/nginx.conf | 3 ++- conf/php-fpm.conf | 2 +- manifest.json | 6 +++--- scripts/_common.sh | 4 ++-- scripts/backup | 2 +- scripts/install | 14 +++++++------- scripts/restore | 18 +++++++++--------- scripts/upgrade | 13 +++---------- 11 files changed, 42 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index f41adda..13b4e73 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to ## Overview Kanboard is a simple visual task board web application. -**Shipped version:** 1.2.12 +**Shipped version:** 1.2.14 ## Screenshots diff --git a/conf/app.src b/conf/app.src index f8239ea..df1ed63 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/kanboard/kanboard/archive/v1.2.12.tar.gz -SOURCE_SUM=6b17a4cfcf2402e69e49826b248c284f5ed84b02aaf054743c2a46f4af2f9fa3 +SOURCE_URL=https://github.com/kanboard/kanboard/archive/v1.2.14.tar.gz +SOURCE_SUM=9e771421b2ac77b42c462532974c17c278c472700b0af7b00a01ea0883217080 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/conf/config.php b/conf/config.php index 616cf56..8884745 100644 --- a/conf/config.php +++ b/conf/config.php @@ -234,3 +234,14 @@ define('HTTP_VERIFY_SSL_CERTIFICATE', false); // TOTP (2FA) issuer name define('TOTP_ISSUER', 'Kanboard'); + +// Comma separated list of fields to not synchronize when using external authentication providers +define('EXTERNAL_AUTH_EXCLUDE_FIELDS', 'username'); + +// Enable or disable displaying group-memberships in userlist (true by default) +define('SHOW_GROUP_MEMBERSHIPS_IN_USERLIST', true); + +// Limit number of groups to display in userlist (The full list of group-memberships is always shown, ... +// ... when hovering the mouse over the group-icon of a given user!) +// If set to 0 ALL group-memberships will be listed (7 by default) +define('SHOW_GROUP_MEMBERSHIPS_IN_USERLIST_WITH_LIMIT', 7); \ No newline at end of file diff --git a/conf/nginx.conf b/conf/nginx.conf index 1048a82..3af1432 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -18,12 +18,13 @@ location __PATH__/ { location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; - fastcgi_pass unix:/var/run/php/php7.0-fpm-__NAME__.sock; + fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; fastcgi_index index.php; include fastcgi_params; fastcgi_param REMOTE_USER $remote_user; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $request_filename; + fastcgi_param SERVER_NAME $host; } # Include SSOWAT user panel. diff --git a/conf/php-fpm.conf b/conf/php-fpm.conf index 39a47a1..ff2075e 100644 --- a/conf/php-fpm.conf +++ b/conf/php-fpm.conf @@ -33,7 +33,7 @@ group = __USER__ ; (IPv6 and IPv4-mapped) on a specific port; ; '/path/to/unix/socket' - to listen on a unix socket. ; Note: This value is mandatory. -listen = /var/run/php/php7.0-fpm-__NAMETOCHANGE__.sock +listen = /var/run/php/php__PHPVERSION__-fpm-__NAMETOCHANGE__.sock ; Set listen(2) backlog. ; Default Value: 511 (-1 on FreeBSD and OpenBSD) diff --git a/manifest.json b/manifest.json index 2545ebc..33bd70f 100644 --- a/manifest.json +++ b/manifest.json @@ -3,9 +3,9 @@ "id": "kanboard", "packaging_format": 1, "description": { - "en": "Kanboard is a simple visual task board web application" + "en": "Free and open source Kanban project management software" }, - "version": "1.2.12~ynh1", + "version": "1.2.14~ynh1", "url": "https://kanboard.net/", "license": "AGPL-3.0", "maintainer": { @@ -13,7 +13,7 @@ "email": "apps@yunohost.org" }, "requirements": { - "yunohost": ">= 3.5.0" + "yunohost": ">= 3.8.1" }, "previous_maintainers": [{ "name": "mbugeia", diff --git a/scripts/_common.sh b/scripts/_common.sh index d321ecc..5ba4a76 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -3,5 +3,5 @@ #================================================= # COMMON VARIABLES #================================================= - -pkg_dependencies="php-gd php-zip php-dom php-mbstring" +YNH_PHP_VERSION="7.3" +extra_php_dependencies="php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-zip php${YNH_PHP_VERSION}-dom php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-mysql" diff --git a/scripts/backup b/scripts/backup index 9258216..4f75ee3 100644 --- a/scripts/backup +++ b/scripts/backup @@ -48,7 +48,7 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" #================================================= ynh_script_progression --message="Backing up php-fpm configuration..." -ynh_backup --src_path="/etc/php/7.0/fpm/pool.d/$app.conf" +ynh_backup --src_path="/etc/php/$YNH_PHP_VERSION/fpm/pool.d/$app.conf" #================================================= # BACKUP FAIL2BAN CONFIGURATION diff --git a/scripts/install b/scripts/install index 049173d..400c979 100644 --- a/scripts/install +++ b/scripts/install @@ -51,11 +51,6 @@ ynh_app_setting_set --app=$app --key=is_public --value=$is_public #================================================= # STANDARD MODIFICATIONS #================================================= -# INSTALL DEPENDENCIES -#================================================= -ynh_script_progression --message="Installing dependencies..." --weight=14 - -ynh_install_app_dependencies $pkg_dependencies #================================================= # CREATE A MYSQL DATABASE @@ -96,10 +91,10 @@ ynh_system_user_create --username=$app #================================================= # PHP-FPM CONFIGURATION #================================================= -ynh_script_progression --message="Configuring php-fpm..." --weight=2 +ynh_script_progression --message="Configuring php-fpm..." --weight=16 # Create a dedicated php-fpm config -ynh_add_fpm_config +ynh_add_fpm_config --phpversion=$YNH_PHP_VERSION --package="$extra_php_dependencies" #================================================= # SPECIFIC SETUP @@ -127,6 +122,11 @@ ynh_replace_string --match_string="__DOMAIN__" --replace_string=$domain --targ ynh_script_progression --message="Initializing database..." --weight=7 ynh_mysql_connect_as --user="$db_name" --password="$db_pwd" --database="$db_name" < "${final_path}/app/Schema/Sql/mysql.sql" +( + cd "$final_path" + # Launch database migration + php$YNH_PHP_VERSION cli db:migrate --no-interaction --verbose +) #================================================= # GENERIC FINALIZATION diff --git a/scripts/restore b/scripts/restore index 18ebad5..5b45fa9 100644 --- a/scripts/restore +++ b/scripts/restore @@ -19,7 +19,7 @@ ynh_abort_if_errors #================================================= # LOAD SETTINGS #================================================= -ynh_script_progression --message="Loading settings..." --weight=2 +ynh_script_progression --message="Loading installation settings..." --weight=2 app=$YNH_APP_INSTANCE_NAME @@ -72,16 +72,17 @@ chown -R $app $final_path/{data,plugins,sessions} # RESTORE THE PHP-FPM CONFIGURATION #================================================= -ynh_restore_file --origin_path="/etc/php/7.0/fpm/pool.d/$app.conf" +ynh_script_progression --message="Reconfiguring php-fpm..." --weight=6 + +# Restore the file first, so it can have a backup if different +ynh_restore_file --origin_path="/etc/php/$YNH_PHP_VERSION/fpm/pool.d/$app.conf" + +# Recreate a dedicated php-fpm config +ynh_add_fpm_config --phpversion=$YNH_PHP_VERSION --package="$extra_php_dependencies" #================================================= # SPECIFIC RESTORATION #================================================= -# REINSTALL DEPENDENCIES -#================================================= -ynh_script_progression --message="Reinstalling dependencies..." --weight=13 - -ynh_install_app_dependencies $pkg_dependencies #================================================= # RESTORE THE MYSQL DATABASE @@ -106,9 +107,8 @@ ynh_systemd_action --action=restart --service_name=fail2ban #================================================= # RELOAD NGINX AND PHP-FPM #================================================= -ynh_script_progression --message="Reloading nginx web server and php-fpm..." --weight=2 +ynh_script_progression --message="Reloading nginx web server..." --weight=2 -ynh_systemd_action --service_name=php7.0-fpm --action=reload ynh_systemd_action --service_name=nginx --action=reload #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 32b5665..ead2588 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -114,14 +114,7 @@ ynh_system_user_create --username=$app ynh_script_progression --message="Upgrading php-fpm configuration..." # Create a dedicated php-fpm config -ynh_add_fpm_config - -#================================================= -# UPGRADE DEPENDENCIES -#================================================= -ynh_script_progression --message="Upgrading dependencies..." --weight=6 - -ynh_install_app_dependencies $pkg_dependencies +ynh_add_fpm_config --phpversion="$YNH_PHP_VERSION" --package="$extra_php_dependencies" #================================================= # SPECIFIC UPGRADE @@ -154,9 +147,9 @@ ynh_script_progression --message="Upgrading kanboard..." --weight=2 ( cd "$final_path" # Launch database migration - php cli db:migrate --no-interaction --verbose + php$YNH_PHP_VERSION cli db:migrate --no-interaction --verbose # Launch plugins migration - php cli plugin:upgrade --no-interaction --verbose + php$YNH_PHP_VERSION cli plugin:upgrade --no-interaction --verbose ) #================================================= From 02c294e66dd8bd2265892cd443ede6c8aeb4fa80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 17 Oct 2020 15:46:18 +0200 Subject: [PATCH 03/22] Update change_url (#102) --- scripts/change_url | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/change_url b/scripts/change_url index cae08dd..943a253 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -76,6 +76,17 @@ then ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.conf" fi +#================================================= +# SETUP FAIL2BAN +#================================================= +ynh_script_progression --message="Configuring Fail2Ban..." --weight=10 + +# Remove the config file with $old_domain +ynh_remove_fail2ban_config + +# Add config file with $new_domain +ynh_add_fail2ban_config --logpath="/var/log/nginx/${new_domain}-error.log" --failregex="^.*authentication failure\" while reading response header from upstream, client: ,.*$" --max_retry=5 + #================================================= # SPECIFIC MODIFICATIONS #================================================= From 3a363e92437238d91e6b222faee0c5db958b5b57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 17 Oct 2020 15:47:47 +0200 Subject: [PATCH 04/22] Revert "Update change_url (#102)" (#103) This reverts commit 02c294e66dd8bd2265892cd443ede6c8aeb4fa80. --- scripts/change_url | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 943a253..cae08dd 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -76,17 +76,6 @@ then ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.conf" fi -#================================================= -# SETUP FAIL2BAN -#================================================= -ynh_script_progression --message="Configuring Fail2Ban..." --weight=10 - -# Remove the config file with $old_domain -ynh_remove_fail2ban_config - -# Add config file with $new_domain -ynh_add_fail2ban_config --logpath="/var/log/nginx/${new_domain}-error.log" --failregex="^.*authentication failure\" while reading response header from upstream, client: ,.*$" --max_retry=5 - #================================================= # SPECIFIC MODIFICATIONS #================================================= From 2a6c044e304eb4276d84ef7531468ab66982446a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 30 Oct 2020 15:08:59 +0100 Subject: [PATCH 05/22] Upgrade v.1.2.16 (#99) * v.1.2.16 --- README.md | 20 +++++++------ README_fr.md | 75 ++++++++++++++++++++++++++++++++++++++++++++++ conf/app.src | 4 +-- conf/config.php | 2 +- conf/cron_kanboard | 2 ++ conf/nginx.conf | 9 ++++++ issue_template.md | 55 ++++++++++++++++++++++++++++++++++ manifest.json | 19 +++++++----- scripts/_common.sh | 16 +++++++++- scripts/backup | 25 +++++++++------- scripts/change_url | 29 ++++++++++++------ scripts/install | 28 ++++++++++------- scripts/remove | 24 ++++++++++----- scripts/restore | 27 ++++++++++------- scripts/upgrade | 37 +++++++++++++++-------- 15 files changed, 291 insertions(+), 81 deletions(-) create mode 100644 README_fr.md create mode 100644 conf/cron_kanboard create mode 100644 issue_template.md diff --git a/README.md b/README.md index 13b4e73..6c9a7b8 100644 --- a/README.md +++ b/README.md @@ -3,13 +3,15 @@ [![Integration level](https://dash.yunohost.org/integration/kanboard.svg)](https://dash.yunohost.org/appci/app/kanboard) ![](https://ci-apps.yunohost.org/ci/badges/kanboard.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/kanboard.maintain.svg) [![Install Kanboard with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=kanboard) +*[Lire ce readme en français.](./README_fr.md)* + > *This package allow you to install Kanboard quickly and simply on a YunoHost server. If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to know how to install and enjoy it.* ## Overview -Kanboard is a simple visual task board web application. +Kanboard is a visual task manager that makes it easy to manage small projects in a collaborative way. The tool is particularly suitable for people who use the Kanban method. Kanboard can be seen as a (Simplified) alternative to the proprietary Trello software. Kanboard is a minimalist software, it focuses only on the features that are really necessary. The user interface is simple and clear. The tool is designed to run on a small machine such as a Raspberry Pi or a Virtual Private Server (VPS). There are no external dependencies, drag and drop of tasks uses the new HTML5 APIs. -**Shipped version:** 1.2.14 +**Shipped version:** 1.2.16 ## Screenshots @@ -17,24 +19,26 @@ Kanboard is a simple visual task board web application. ## Demo -* [YunoHost demo](https://demo.yunohost.org/dokuwiki/) +* [YunoHost demo](https://demo.yunohost.org/kanboard/) ## Configuration ## Documentation * Official documentation: https://docs.kanboard.org/en/latest/ - * YunoHost documentation: If specific documentation is needed, feel free to contribute. + * YunoHost documentation: https://yunohost.org/#/app_kanboard ## YunoHost specific features #### Multi-users support + * Are LDAP and HTTP auth supported? **No** + * Can the app be used by multiple users? **Yes** + #### Supported architectures -* x86-64b - [![Build Status](https://ci-apps.yunohost.org/ci/logs/kanboard%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/kanboard/) +* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/kanboard%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/kanboard/) * ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/kanboard%20%28Apps%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/kanboard/) -* Jessie x86-64b - [![Build Status](https://ci-stretch.nohost.me/ci/logs/kanboard%20%28Apps%29.svg)](https://ci-stretch.nohost.me/ci/apps/kanboard/) ## Limitations @@ -59,10 +63,8 @@ This is due to a Kanboard limitation. --- -Developers info ----------------- +## Developers info -**Only if you want to use a testing branch for coding, instead of merging directly into master.** Please do your pull request to the [testing branch](https://github.com/YunoHost-Apps/kanboard_ynh/tree/testing). To try the testing branch, please proceed like that. diff --git a/README_fr.md b/README_fr.md new file mode 100644 index 0000000..6042062 --- /dev/null +++ b/README_fr.md @@ -0,0 +1,75 @@ +# Kanboard pour Yunohost + +[![Integration level](https://dash.yunohost.org/integration/kanboard.svg)](https://dash.yunohost.org/appci/app/kanboard) ![](https://ci-apps.yunohost.org/ci/badges/kanboard.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/kanboard.maintain.svg) +[![Installer Kanboard avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=kanboard) + +*[Read this readme in english.](./README.md)* + +> *Ce package vous permet d'installer Kanboard rapidement et simplement sur un serveur YunoHost. +Si vous n'avez pas YunoHost, consultez [le guide](https://yunohost.org/#/install) pour apprendre comment l'installer.* + +## Vue d'ensemble +Kanboard est un gestionnaire de tâches visuel qui permet de gérer facilement des petits projets de manière collaborative. L'outil est particulièrement adapté aux personnes qui utilisent la méthode Kanban. On peut voir Kanboard comme une alternative (simplifiée) au logiciel propriétaire Trello. Kanboard est un logiciel minimaliste, il se concentre uniquement sur les fonctionnalités réellement nécessaires. L'interface utilisateur est simple et clair. L'outil est prévu pour fonctionner sur une petite machine tel qu'un Raspberry Pi ou un serveur virtuel privé (VPS). Il n'y a aucune dépendance externe, le glisser-déposer des tâches utilise les nouvelles API de HTML5. + +**Version incluse :** 1.2.16 + +## Captures d'écran + +![](https://kanboard.org/assets/img/board.png) + +## Démo + +* [Démo YunoHost](https://demo.yunohost.org/kanboard/) + +## Configuration + +## Documentation + + * Documentation officielle : https://docs.kanboard.org/fr/latest/ + * Documentation YunoHost : https://yunohost.org/#/app_kanboard_fr + +## Caractéristiques spécifiques YunoHost + +#### Support multi-utilisateur + +* L'authentification LDAP et HTTP est-elle prise en charge ? **Non** +* L'application peut-elle être utilisée par plusieurs utilisateurs ? **Oui** + +#### Architectures supportées + +* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/kanboard%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/kanboard/) +* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/kanboard%20%28Apps%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/kanboard/) + +## Limitations + +## Informations additionnelles + +### Comment se connecter en tant qu'utilisateurs externes (non SSOwat) + +Vous devez éditer ce fichier `/var/www/kanboard/config.php`, trouver la ligne `define('REVERSE_PROXY_AUTH', true);`et la changer de `true` à `false`. +**Attention** cela désactive la possibilité de se connecter avec les utilisateurs SSOwat. Vous ne pourrez *que* vous connecter avec les utilisateurs Kanboard créés à l'intérieur de Kanboard. +Ensuite, vous pouvez vous connecter. + +**NB**: si vous n'effectuez pas cette modification, vous obtiendrez le message d'erreur suivant "Accès interdit". + +Cela est dû à une limitation de Kanboard. + +## Liens + + * Signaler un bug : https://github.com/YunoHost-Apps/kanboard_ynh/issues + * Site de l'application : https://kanboard.org + * Dépôt de l'application principale : https://github.com/kanboard/kanboard + * Site web YunoHost : https://yunohost.org/ + +--- + +## Informations pour les développeurs + +Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/kanboard_ynh/tree/testing). + +Pour essayer la branche testing, procédez comme suit. +``` +sudo yunohost app install https://github.com/YunoHost-Apps/kanboard_ynh/tree/testing --debug +or +sudo yunohost app upgrade kanboard -u https://github.com/YunoHost-Apps/kanboard_ynh/tree/testing --debug +``` diff --git a/conf/app.src b/conf/app.src index df1ed63..466ac16 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/kanboard/kanboard/archive/v1.2.14.tar.gz -SOURCE_SUM=9e771421b2ac77b42c462532974c17c278c472700b0af7b00a01ea0883217080 +SOURCE_URL=https://github.com/kanboard/kanboard/archive/v1.2.16.tar.gz +SOURCE_SUM=d43bbabceb47f42d3418bfb7abf8af2ad01f00304ffcfc644abd9feca9d9ceef SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/conf/config.php b/conf/config.php index 8884745..7ae3929 100644 --- a/conf/config.php +++ b/conf/config.php @@ -244,4 +244,4 @@ define('SHOW_GROUP_MEMBERSHIPS_IN_USERLIST', true); // Limit number of groups to display in userlist (The full list of group-memberships is always shown, ... // ... when hovering the mouse over the group-icon of a given user!) // If set to 0 ALL group-memberships will be listed (7 by default) -define('SHOW_GROUP_MEMBERSHIPS_IN_USERLIST_WITH_LIMIT', 7); \ No newline at end of file +define('SHOW_GROUP_MEMBERSHIPS_IN_USERLIST_WITH_LIMIT', 7); diff --git a/conf/cron_kanboard b/conf/cron_kanboard new file mode 100644 index 0000000..eb9679c --- /dev/null +++ b/conf/cron_kanboard @@ -0,0 +1,2 @@ +# Execute the daily cronjob at 8am +0 8 * * * __APP__ cd "__FINALPATH__" && PHP__PHPVERSION__ ./cli cronjob >/dev/null 2>&1 \ No newline at end of file diff --git a/conf/nginx.conf b/conf/nginx.conf index 3af1432..f1689fc 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -16,6 +16,15 @@ location __PATH__/ { # Override CSP header to make SSOWAT user panel compatible with kanboard more_set_headers Content-Security-Policy "default-src 'self' 'unsafe-eval' data:;"; + location __PATH__/(?:kanboard|config.php|config.default.php) { + deny all; + } + + # Deny access to the directory data + location __PATH__/data { + deny all; + } + location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; diff --git a/issue_template.md b/issue_template.md new file mode 100644 index 0000000..53d9f38 --- /dev/null +++ b/issue_template.md @@ -0,0 +1,55 @@ +--- +name: Bug report +about: When creating a bug report, please use the following template to provide all the relevant information and help debugging efficiently. + +--- + +**How to post a meaningful bug report** +1. *Read this whole template first.* +2. *Make sure you are on the right place:* + - *If you were performing an action on the app from the webadmin or the CLI (install, update, backup, restore, change_url...), you are on the right place!* + - *Otherwise, the issue may be due to the app itself. Refer to its documentation or repository for help.* + - *In doubt, ask here and we will figure it out together.* +3. *Delete these italic comments as you write over them below, and remove this guide.* +--- + +### Describe the bug + +*A clear and concise description of what the bug is.* + +### Context + +- Hardware: *VPS bought online / Old laptop or computer / Raspberry Pi at home / Internet Cube with VPN / Other ARM board / ...* +- YunoHost version: x.x.x +- I have access to my server: *Through SSH | through the webadmin | direct access via keyboard / screen | ...* +- Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: *no / yes* + - If yes, please explain: +- Using, or trying to install package version/branch: +- If upgrading, current package version: *can be found in the admin, or with `yunohost app info $app_id`* + +### Steps to reproduce + +- *If you performed a command from the CLI, the command itself is enough. For example:* + ```sh + sudo yunohost app install kanboard + ``` +- *If you used the webadmin, please perform the equivalent command from the CLI first.* +- *If the error occurs in your browser, explain what you did:* + 1. *Go to '...'* + 2. *Click on '...'* + 3. *Scroll down to '...'* + 4. *See error* + +### Expected behavior + +*A clear and concise description of what you expected to happen. You can remove this section if the command above is enough to understand your intent.* + +### Logs + +*When an operation fails, YunoHost provides a simple way to share the logs.* +- *In the webadmin, the error message contains a link to the relevant log page. On that page, you will be able to 'Share with Yunopaste'. If you missed it, the logs of previous operations are also available under Tools > Logs.* +- *In command line, the command to share the logs is displayed at the end of the operation and looks like `yunohost log display [log name] --share`. If you missed it, you can find the log ID of a previous operation using `yunohost log list`.* + +*After sharing the log, please copypaste directly the link provided by YunoHost (to help readability, no need to copypaste the entire content of the log here, just the link is enough...)* + +*If applicable and useful, add screenshots to help explain your problem.* diff --git a/manifest.json b/manifest.json index 33bd70f..cd8d2c6 100644 --- a/manifest.json +++ b/manifest.json @@ -3,11 +3,12 @@ "id": "kanboard", "packaging_format": 1, "description": { - "en": "Free and open source Kanban project management software" + "en": "Kanban project management software", + "fr": "Logiciel de gestion de projet Kanban" }, - "version": "1.2.14~ynh1", + "version": "1.2.16~ynh1", "url": "https://kanboard.net/", - "license": "AGPL-3.0", + "license": "MIT", "maintainer": { "name": "YunoHost Contributors", "email": "apps@yunohost.org" @@ -35,7 +36,8 @@ "name": "domain", "type": "domain", "ask": { - "en": "Choose a domain for Kanboard" + "en": "Choose a domain name for Kanboard", + "fr": "Choisissez un nom de domaine pour Kanboard" }, "example": "domain.org" }, @@ -43,7 +45,8 @@ "name": "path", "type": "path", "ask": { - "en": "Choose a path for Kanboard" + "en": "Choose a path for Kanboard", + "fr": "Choisissez un chemin pour Kanboard" }, "example": "/kanboard", "default": "/kanboard" @@ -52,7 +55,8 @@ "name": "admin", "type": "user", "ask": { - "en": "Choose the admin user for Kanboard" + "en": "Choose the admin user", + "fr": "Choisissez l'administrateur" }, "example": "johndoe" }, @@ -60,7 +64,8 @@ "name": "is_public", "type": "boolean", "ask": { - "en": "Is it a public site ?" + "en": "Is it a public application?", + "fr": "Est-ce une application publique ?" }, "default": false } diff --git a/scripts/_common.sh b/scripts/_common.sh index 5ba4a76..cea4e7d 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -3,5 +3,19 @@ #================================================= # COMMON VARIABLES #================================================= + YNH_PHP_VERSION="7.3" -extra_php_dependencies="php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-zip php${YNH_PHP_VERSION}-dom php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-mysql" + +extra_php_dependencies="php${YNH_PHP_VERSION}-cli php${YNH_PHP_VERSION}-opcache php${YNH_PHP_VERSION}-curl php${YNH_PHP_VERSION}-json php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-zip php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-mysql" + +#================================================= +# PERSONAL HELPERS +#================================================= + +#================================================= +# EXPERIMENTAL HELPERS +#================================================= + +#================================================= +# FUTURE OFFICIAL HELPERS +#================================================= diff --git a/scripts/backup b/scripts/backup index 4f75ee3..4ddf7a7 100644 --- a/scripts/backup +++ b/scripts/backup @@ -13,55 +13,60 @@ source /usr/share/yunohost/helpers # MANAGE SCRIPT FAILURE #================================================= -# Exit if an error occurs during the execution of the script ynh_abort_if_errors #================================================= # LOAD SETTINGS #================================================= -ynh_script_progression --message="Loading installation settings..." --weight=2 +ynh_print_info --message="Loading installation settings..." app=$YNH_APP_INSTANCE_NAME final_path=$(ynh_app_setting_get --app=$app --key=final_path) domain=$(ynh_app_setting_get --app=$app --key=domain) db_name=$(ynh_app_setting_get --app=$app --key=db_name) +phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= -# STANDARD BACKUP STEPS +# DECLARE DATA AND CONF FILES TO BACKUP +#================================================= +ynh_print_info --message="Declaring files to be backed up..." + #================================================= # BACKUP THE APP MAIN DIR #================================================= -ynh_script_progression --message="Backing up the main app directory..." ynh_backup --src_path="$final_path" #================================================= # BACKUP THE NGINX CONFIGURATION #================================================= -ynh_script_progression --message="Backing up nginx web server configuration..." ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" #================================================= # BACKUP THE PHP-FPM CONFIGURATION #================================================= -ynh_script_progression --message="Backing up php-fpm configuration..." -ynh_backup --src_path="/etc/php/$YNH_PHP_VERSION/fpm/pool.d/$app.conf" +ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" #================================================= # BACKUP FAIL2BAN CONFIGURATION #================================================= -ynh_script_progression --message="Backing up fail2ban configuration..." ynh_backup --src_path="/etc/fail2ban/jail.d/$app.conf" ynh_backup --src_path="/etc/fail2ban/filter.d/$app.conf" +#================================================= +# BACKUP A CRON FILE +#================================================= + +ynh_backup --src_path="/etc/cron.d/$app" + #================================================= # BACKUP THE MYSQL DATABASE #================================================= -ynh_script_progression --message="Backing up the MySQL database..." +ynh_print_info --message="Backing up the MySQL database..." ynh_mysql_dump_db --database="$db_name" > db.sql @@ -69,4 +74,4 @@ ynh_mysql_dump_db --database="$db_name" > db.sql # END OF SCRIPT #================================================= -ynh_script_progression --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." --last +ynh_print_info --message="Backup script completed for Kanboard. (YunoHost will then actually copy those files to the archive)." diff --git a/scripts/change_url b/scripts/change_url index cae08dd..4a27e23 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -24,7 +24,7 @@ app=$YNH_APP_INSTANCE_NAME #================================================= # LOAD SETTINGS #================================================= -ynh_script_progression --message="Loading installation settings..." +ynh_script_progression --message="Loading installation settings..." --weight=1 # Needed for helper "ynh_add_nginx_config" final_path=$(ynh_app_setting_get --app=$app --key=final_path) @@ -50,23 +50,23 @@ fi #================================================= # MODIFY URL IN NGINX CONF #================================================= -ynh_script_progression --message="Updating nginx web server configuration..." --weight=2 +ynh_script_progression --message="Updating NGINX web server configuration..." --weight=2 nginx_conf_path=/etc/nginx/conf.d/$old_domain.d/$app.conf -# Change the path in the nginx config file +# Change the path in the NGINX config file if [ $change_path -eq 1 ] then - # Make a backup of the original nginx config file if modified + # Make a backup of the original NGINX config file if modified ynh_backup_if_checksum_is_different --file="$nginx_conf_path" - # Set global variables for nginx helper + # Set global variables for NGINX helper domain="$old_domain" path_url="$new_path" - # Create a dedicated nginx config + # Create a dedicated NGINX config ynh_add_nginx_config fi -# Change the domain for nginx +# Change the domain for NGINX if [ $change_domain -eq 1 ] then # Delete file checksum for the old conf file location @@ -76,6 +76,17 @@ then ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.conf" fi +#================================================= +# SETUP FAIL2BAN +#================================================= +ynh_script_progression --message="Configuring Fail2Ban..." --weight=10 + +# Remove the config file with $old_domain +ynh_remove_fail2ban_config + +# Add config file with $new_domain +ynh_add_fail2ban_config --logpath="/var/log/nginx/${new_domain}-error.log" --failregex="^.*authentication failure\" while reading response header from upstream, client: ,.*$" --max_retry=5 + #================================================= # SPECIFIC MODIFICATIONS #================================================= @@ -91,7 +102,7 @@ fi #================================================= # RELOAD NGINX #================================================= -ynh_script_progression --message="Reloading nginx web server..." +ynh_script_progression --message="Reloading NGINX web server..." --weight=2 ynh_systemd_action --service_name=nginx --action=reload @@ -99,4 +110,4 @@ ynh_systemd_action --service_name=nginx --action=reload # END OF SCRIPT #================================================= -ynh_script_progression --message="Change of URL completed for $app" --last +ynh_script_progression --message="Change of URL completed for Kanboard" --last diff --git a/scripts/install b/scripts/install index 400c979..682dd0c 100644 --- a/scripts/install +++ b/scripts/install @@ -13,7 +13,6 @@ source /usr/share/yunohost/helpers # MANAGE SCRIPT FAILURE #================================================= -# Exit if an error occurs during the execution of the script ynh_abort_if_errors #================================================= @@ -50,8 +49,6 @@ ynh_app_setting_set --app=$app --key=is_public --value=$is_public #================================================= # STANDARD MODIFICATIONS -#================================================= - #================================================= # CREATE A MYSQL DATABASE #================================================ @@ -75,7 +72,7 @@ mkdir -p $final_path/sessions/ #================================================= # NGINX CONFIGURATION #================================================= -ynh_script_progression --message="Configuring nginx web server..." --weight=2 +ynh_script_progression --message="Configuring NGINX web server..." --weight=2 # Create a dedicated nginx config ynh_add_nginx_config @@ -91,17 +88,18 @@ ynh_system_user_create --username=$app #================================================= # PHP-FPM CONFIGURATION #================================================= -ynh_script_progression --message="Configuring php-fpm..." --weight=16 +ynh_script_progression --message="Configuring PHP-FPM..." --weight=16 -# Create a dedicated php-fpm config +# Create a dedicated PHP-FPM config ynh_add_fpm_config --phpversion=$YNH_PHP_VERSION --package="$extra_php_dependencies" +phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= # SPECIFIC SETUP #================================================= # CREATE CONFIG.PHP #================================================= -ynh_script_progression --message="Configuring kanboard..." +ynh_script_progression --message="Configuring Kanboard..." # Retrieve admin email email=$(ynh_user_get_info --username=$admin --key=mail) @@ -142,10 +140,20 @@ chmod -R 700 $final_path/sessions #================================================= # SETUP FAIL2BAN #================================================= -ynh_script_progression --message="Configuring fail2ban..." --weight=10 +ynh_script_progression --message="Configuring Fail2Ban..." --weight=10 ynh_add_fail2ban_config --logpath="/var/log/nginx/$domain-error.log" --failregex="^.*authentication failure\" while reading response header from upstream, client: ,.*$" --max_retry=5 +#================================================= +# SETUP CRON +#================================================= +ynh_script_progression --message="Setuping a cron..." + +cp ../conf/cron_kanboard /etc/cron.d/$app +ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path/" --target_file="/etc/cron.d/$app" +ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="/etc/cron.d/$app" +ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$phpversion" --target_file="/etc/cron.d/$app" + #================================================= # SETUP SSOWAT #================================================= @@ -169,7 +177,7 @@ ynh_store_file_checksum --file="$config_php" #================================================= # RELOAD NGINX #================================================= -ynh_script_progression --message="Reloading nginx web server..." +ynh_script_progression --message="Reloading NGINX web server..." ynh_systemd_action --service_name=nginx --action=reload @@ -177,4 +185,4 @@ ynh_systemd_action --service_name=nginx --action=reload # END OF SCRIPT #================================================= -ynh_script_progression --message="Installation of $app completed" --last +ynh_script_progression --message="Installation of Kanboard completed" --last diff --git a/scripts/remove b/scripts/remove index f530da7..80922e1 100644 --- a/scripts/remove +++ b/scripts/remove @@ -12,7 +12,7 @@ source /usr/share/yunohost/helpers #================================================= # LOAD SETTINGS #================================================= -ynh_script_progression --message="Loading installation settings..." +ynh_script_progression --message="Loading installation settings..." --weight=1 app=$YNH_APP_INSTANCE_NAME @@ -41,7 +41,7 @@ ynh_mysql_remove_db --db_user=$db_name --db_name=$db_name #================================================= # REMOVE APP MAIN DIR #================================================= -ynh_script_progression --message="Removing app main directory..." +ynh_script_progression --message="Removing Kanboard main directory..." # Remove the app directory securely ynh_secure_remove --file="$final_path" @@ -49,17 +49,17 @@ ynh_secure_remove --file="$final_path" #================================================= # REMOVE NGINX CONFIGURATION #================================================= -ynh_script_progression --message="Removing nginx web server configuration..." +ynh_script_progression --message="Removing NGINX web server configuration..." --weight=2 -# Remove the dedicated nginx config +# Remove the dedicated NGINX config ynh_remove_nginx_config #================================================= # REMOVE PHP-FPM CONFIGURATION #================================================= -ynh_script_progression --message="Removing php-fpm configuration..." --weight=2 +ynh_script_progression --message="Removing PHP-FPM configuration..." --weight=2 -# Remove the dedicated php-fpm config +# Remove the dedicated PHP-FPM config ynh_remove_fpm_config #================================================= @@ -67,10 +67,18 @@ ynh_remove_fpm_config #================================================= # REMOVE FAIL2BAN CONFIGURATION #================================================= -ynh_script_progression --message="Removing fail2ban configuration..." --weight=7 +ynh_script_progression --message="Removing Fail2Ban configuration..." --weight=7 ynh_remove_fail2ban_config +#================================================= +# REMOVE THE CRON FILE +#================================================= +ynh_script_progression --message="Removing the cron file..." --weight=2 + +# Remove a cron file +ynh_secure_remove --file="/etc/cron.d/$app" + #================================================= # REMOVE DEDICATED USER #================================================= @@ -83,4 +91,4 @@ ynh_system_user_delete --username=$app # END OF SCRIPT #================================================= -ynh_script_progression --message="Removal of $app completed" --last +ynh_script_progression --message="Removal of Kanboard completed" --last diff --git a/scripts/restore b/scripts/restore index 5b45fa9..56c4399 100644 --- a/scripts/restore +++ b/scripts/restore @@ -13,7 +13,6 @@ source /usr/share/yunohost/helpers # MANAGE SCRIPT FAILURE #================================================= -# Exit if an error occurs during the execution of the script ynh_abort_if_errors #================================================= @@ -27,6 +26,7 @@ domain=$(ynh_app_setting_get --app=$app --key=domain) path_url=$(ynh_app_setting_get --app=$app --key=path) final_path=$(ynh_app_setting_get --app=$app --key=final_path) db_name=$(ynh_app_setting_get --app=$app --key=db_name) +phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= # CHECK IF THE APP CAN BE RESTORED @@ -49,7 +49,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" #================================================= # RESTORE THE APP MAIN DIR #================================================= -ynh_script_progression --message="Restoring the app main directory..." +ynh_script_progression --message="Restoring Kanboard main directory..." --weight=5 ynh_restore_file --origin_path="$final_path" @@ -71,23 +71,20 @@ chown -R $app $final_path/{data,plugins,sessions} #================================================= # RESTORE THE PHP-FPM CONFIGURATION #================================================= - -ynh_script_progression --message="Reconfiguring php-fpm..." --weight=6 +ynh_script_progression --message="Reconfiguring PHP-FPM..." --weight=6 # Restore the file first, so it can have a backup if different -ynh_restore_file --origin_path="/etc/php/$YNH_PHP_VERSION/fpm/pool.d/$app.conf" +ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" # Recreate a dedicated php-fpm config ynh_add_fpm_config --phpversion=$YNH_PHP_VERSION --package="$extra_php_dependencies" #================================================= # SPECIFIC RESTORATION -#================================================= - #================================================= # RESTORE THE MYSQL DATABASE #================================================= -ynh_script_progression --message="Restoring the MySQL database..." +ynh_script_progression --message="Restoring the MySQL database..." --weight=3 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 @@ -96,23 +93,31 @@ ynh_mysql_connect_as --user=$db_name --password=$db_pwd --database=$db_name < ./ #================================================= # RESTORE FAIL2BAN CONFIGURATION #================================================= -ynh_script_progression --message="Restoring the fail2ban configuration..." --weight=8 +ynh_script_progression --message="Restoring the Fail2Ban configuration..." --weight=8 ynh_restore_file "/etc/fail2ban/jail.d/$app.conf" ynh_restore_file "/etc/fail2ban/filter.d/$app.conf" ynh_systemd_action --action=restart --service_name=fail2ban +#================================================= +# RESTORE THE CRON FILE +#================================================= +ynh_script_progression --message="Restoring the cron file..." --weight=2 + +ynh_restore_file --origin_path="/etc/cron.d/$app" + #================================================= # GENERIC FINALIZATION #================================================= # RELOAD NGINX AND PHP-FPM #================================================= -ynh_script_progression --message="Reloading nginx web server..." --weight=2 +ynh_script_progression --message="Reloading NGINX web server and PHP-FPM.." --weight=2 +ynh_systemd_action --service_name=php$phpversion-fpm --action=reload ynh_systemd_action --service_name=nginx --action=reload #================================================= # END OF SCRIPT #================================================= -ynh_script_progression --message="Restoration completed for $app" --last +ynh_script_progression --message="Restoration completed for Kanboard" --last diff --git a/scripts/upgrade b/scripts/upgrade index ead2588..7fbf9e1 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -12,7 +12,7 @@ source /usr/share/yunohost/helpers #================================================= # LOAD SETTINGS #================================================= -ynh_script_progression --message="Loading installation settings..." +ynh_script_progression --message="Loading installation settings..." --weight=1 app=$YNH_APP_INSTANCE_NAME @@ -22,6 +22,7 @@ admin=$(ynh_app_setting_get --app=$app --key=adminusername) is_public=$(ynh_app_setting_get --app=$app --key=is_public) final_path=$(ynh_app_setting_get --app=$app --key=final_path) db_name=$(ynh_app_setting_get --app=$app --key=db_name) +phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= # CHECK VERSION @@ -32,7 +33,7 @@ upgrade_type=$(ynh_check_app_version_changed) #================================================= # ENSURE DOWNWARD COMPATIBILITY #================================================= -ynh_script_progression --message="Ensuring downward compatibility..." +ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 # Fix is_public as a boolean value if [ "$is_public" = "Yes" ]; then @@ -58,7 +59,7 @@ fi #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP #================================================= -ynh_script_progression --message="Backing up the app before upgrading (may take a while)..." --weight=5 +ynh_script_progression --message="Backing up Kanboard before upgrading (may take a while)..." --weight=5 # Backup the current version of the app ynh_backup_before_upgrade @@ -95,15 +96,15 @@ mkdir -p $final_path/sessions/ #================================================= # NGINX CONFIGURATION #================================================= -ynh_script_progression --message="Upgrading nginx web server configuration..." --weight=2 +ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=2 -# Create a dedicated nginx config +# Create a dedicated NGINX config ynh_add_nginx_config #================================================= # CREATE DEDICATED USER #================================================= -ynh_script_progression --message="Making sure dedicated system user exists..." +ynh_script_progression --message="Making sure dedicated system user exists..." --weight=1 # Create a dedicated user (if not existing) ynh_system_user_create --username=$app @@ -111,9 +112,9 @@ ynh_system_user_create --username=$app #================================================= # PHP-FPM CONFIGURATION #================================================= -ynh_script_progression --message="Upgrading php-fpm configuration..." +ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=5 -# Create a dedicated php-fpm config +# Create a dedicated PHP-FPM config ynh_add_fpm_config --phpversion="$YNH_PHP_VERSION" --package="$extra_php_dependencies" #================================================= @@ -121,7 +122,7 @@ ynh_add_fpm_config --phpversion="$YNH_PHP_VERSION" --package="$extra_php_depende #================================================= # CREATE CONFIG.PHP #================================================= -ynh_script_progression --message="Reconfiguring kanboard..." --weight=2 +ynh_script_progression --message="Reconfiguring Kanboard..." --weight=2 # Retrieve admin email email=$(ynh_user_get_info --username=$admin --key=mail) @@ -142,7 +143,7 @@ ynh_replace_string --match_string="__DOMAIN__" --replace_string=$domain --targ #================================================= # UPGRADE KANBOARD #================================================= -ynh_script_progression --message="Upgrading kanboard..." --weight=2 +ynh_script_progression --message="Upgrading Kanboard..." --weight=2 ( cd "$final_path" @@ -166,10 +167,20 @@ chmod -R 700 $final_path/sessions #================================================= # SETUP FAIL2BAN #================================================= -ynh_script_progression --message="Reconfiguring fail2ban..." --weight=7 +ynh_script_progression --message="Reconfiguring Fail2Ban..." --weight=7 ynh_add_fail2ban_config --logpath="/var/log/nginx/$domain-error.log" --failregex="^.*authentication failure\" while reading response header from upstream, client: ,.*$" --max_retry=5 +#================================================= +# SETUP CRON +#================================================= +ynh_script_progression --message="Setuping a cron..." + +cp ../conf/cron_kanboard /etc/cron.d/$app +ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path/" --target_file="/etc/cron.d/$app" +ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="/etc/cron.d/$app" +ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$phpversion" --target_file="/etc/cron.d/$app" + #================================================= # SETUP SSOWAT #================================================= @@ -193,7 +204,7 @@ ynh_store_file_checksum --file="$config_php" #================================================= # RELOAD NGINX #================================================= -ynh_script_progression --message="Reloading nginx web server..." +ynh_script_progression --message="Reloading NGINX web server..." --weight=1 ynh_systemd_action --service_name=nginx --action=reload @@ -201,4 +212,4 @@ ynh_systemd_action --service_name=nginx --action=reload # END OF SCRIPT #================================================= -ynh_script_progression --message="Installation of $app completed" --last +ynh_script_progression --message="Installation of Kanboard completed" --last From 227daf1d20bf6f6b1e46b6f1f3c879d94da53521 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 12 Nov 2020 15:36:36 +0100 Subject: [PATCH 06/22] Remove not needed $YNH_PHP_VERSION --- scripts/install | 2 +- scripts/restore | 4 ++-- scripts/upgrade | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 682dd0c..080e850 100644 --- a/scripts/install +++ b/scripts/install @@ -91,7 +91,7 @@ ynh_system_user_create --username=$app ynh_script_progression --message="Configuring PHP-FPM..." --weight=16 # Create a dedicated PHP-FPM config -ynh_add_fpm_config --phpversion=$YNH_PHP_VERSION --package="$extra_php_dependencies" +ynh_add_fpm_config --package="$extra_php_dependencies" phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= diff --git a/scripts/restore b/scripts/restore index 56c4399..af1036a 100644 --- a/scripts/restore +++ b/scripts/restore @@ -76,8 +76,8 @@ ynh_script_progression --message="Reconfiguring PHP-FPM..." --weight=6 # Restore the file first, so it can have a backup if different ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" -# Recreate a dedicated php-fpm config -ynh_add_fpm_config --phpversion=$YNH_PHP_VERSION --package="$extra_php_dependencies" +# Recreate a dedicated PHP-FPM config +ynh_add_fpm_config --package="$extra_php_dependencies" #================================================= # SPECIFIC RESTORATION diff --git a/scripts/upgrade b/scripts/upgrade index 7fbf9e1..f141e9b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -115,7 +115,7 @@ ynh_system_user_create --username=$app ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=5 # Create a dedicated PHP-FPM config -ynh_add_fpm_config --phpversion="$YNH_PHP_VERSION" --package="$extra_php_dependencies" +ynh_add_fpm_config --package="$extra_php_dependencies" #================================================= # SPECIFIC UPGRADE From 4a2d2c47c8358c945e34b5c6f2c5aee045439d53 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 18 Nov 2020 17:09:19 +0100 Subject: [PATCH 07/22] Small typo --- README_fr.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README_fr.md b/README_fr.md index 6042062..06ba19e 100644 --- a/README_fr.md +++ b/README_fr.md @@ -46,7 +46,7 @@ Kanboard est un gestionnaire de tâches visuel qui permet de gérer facilement d ### Comment se connecter en tant qu'utilisateurs externes (non SSOwat) -Vous devez éditer ce fichier `/var/www/kanboard/config.php`, trouver la ligne `define('REVERSE_PROXY_AUTH', true);`et la changer de `true` à `false`. +Vous devez éditer ce fichier `/var/www/kanboard/config.php`, trouver la ligne `define('REVERSE_PROXY_AUTH', true);` et la changer de `true` à `false`. **Attention** cela désactive la possibilité de se connecter avec les utilisateurs SSOwat. Vous ne pourrez *que* vous connecter avec les utilisateurs Kanboard créés à l'intérieur de Kanboard. Ensuite, vous pouvez vous connecter. @@ -70,6 +70,6 @@ Merci de faire vos pull request sur la [branche testing](https://github.com/Yuno Pour essayer la branche testing, procédez comme suit. ``` sudo yunohost app install https://github.com/YunoHost-Apps/kanboard_ynh/tree/testing --debug -or +ou sudo yunohost app upgrade kanboard -u https://github.com/YunoHost-Apps/kanboard_ynh/tree/testing --debug ``` From cd53bc4f566e8359fb6f6b1c101be61056083239 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 9 Dec 2020 09:49:37 +0100 Subject: [PATCH 08/22] Fix linter warning --- scripts/upgrade | 7 ------- 1 file changed, 7 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index f141e9b..5996143 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -70,13 +70,6 @@ ynh_clean_setup () { # Exit if an error occurs during the execution of the script ynh_abort_if_errors -#================================================= -# CHECK THE PATH -#================================================= - -# Normalize the URL path syntax -path_url=$(ynh_normalize_url_path --path_url=$path_url) - #================================================= # STANDARD UPGRADE STEPS #================================================= From 3597603588f5e02449e565736cfda7ee40bed531 Mon Sep 17 00:00:00 2001 From: Rasmus MK <71251695+rasmus-mk@users.noreply.github.com> Date: Mon, 28 Dec 2020 08:15:16 +0100 Subject: [PATCH 09/22] Set cronjob permissions to rw-r--r-- (#104) Cron refuses to execute the job if the file has write permissions for group or other. Co-authored-by: Rasmus Mattsson Kallio --- scripts/install | 1 + scripts/restore | 1 + scripts/upgrade | 1 + 3 files changed, 3 insertions(+) diff --git a/scripts/install b/scripts/install index 080e850..5ca045b 100644 --- a/scripts/install +++ b/scripts/install @@ -153,6 +153,7 @@ cp ../conf/cron_kanboard /etc/cron.d/$app ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path/" --target_file="/etc/cron.d/$app" ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="/etc/cron.d/$app" ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$phpversion" --target_file="/etc/cron.d/$app" +chmod 644 "/etc/cron.d/$app" #================================================= # SETUP SSOWAT diff --git a/scripts/restore b/scripts/restore index af1036a..e29c830 100644 --- a/scripts/restore +++ b/scripts/restore @@ -105,6 +105,7 @@ ynh_systemd_action --action=restart --service_name=fail2ban ynh_script_progression --message="Restoring the cron file..." --weight=2 ynh_restore_file --origin_path="/etc/cron.d/$app" +chmod 644 "/etc/cron.d/$app" #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index 5996143..22f3485 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -173,6 +173,7 @@ cp ../conf/cron_kanboard /etc/cron.d/$app ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path/" --target_file="/etc/cron.d/$app" ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="/etc/cron.d/$app" ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$phpversion" --target_file="/etc/cron.d/$app" +chmod 644 "/etc/cron.d/$app" #================================================= # SETUP SSOWAT From 6de16def21b796c3b2ea3934ce6983e1d291cf03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 28 Dec 2020 10:24:37 +0100 Subject: [PATCH 10/22] Upgrade to 1.2.17 (#105) * Upgrade to 1.2.17 * Update config.php --- README.md | 4 ++-- README_fr.md | 4 ++-- check_process | 3 --- conf/app.src | 4 ++-- conf/config.php | 3 +++ conf/nginx.conf | 2 +- manifest.json | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 6c9a7b8..027f36d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Kanboard for Yunohost [![Integration level](https://dash.yunohost.org/integration/kanboard.svg)](https://dash.yunohost.org/appci/app/kanboard) ![](https://ci-apps.yunohost.org/ci/badges/kanboard.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/kanboard.maintain.svg) -[![Install Kanboard with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=kanboard) +[![Install Kanboard with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=kanboard) *[Lire ce readme en français.](./README_fr.md)* @@ -11,7 +11,7 @@ If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to ## Overview Kanboard is a visual task manager that makes it easy to manage small projects in a collaborative way. The tool is particularly suitable for people who use the Kanban method. Kanboard can be seen as a (Simplified) alternative to the proprietary Trello software. Kanboard is a minimalist software, it focuses only on the features that are really necessary. The user interface is simple and clear. The tool is designed to run on a small machine such as a Raspberry Pi or a Virtual Private Server (VPS). There are no external dependencies, drag and drop of tasks uses the new HTML5 APIs. -**Shipped version:** 1.2.16 +**Shipped version:** 1.2.17 ## Screenshots diff --git a/README_fr.md b/README_fr.md index 06ba19e..0de5302 100644 --- a/README_fr.md +++ b/README_fr.md @@ -1,7 +1,7 @@ # Kanboard pour Yunohost [![Integration level](https://dash.yunohost.org/integration/kanboard.svg)](https://dash.yunohost.org/appci/app/kanboard) ![](https://ci-apps.yunohost.org/ci/badges/kanboard.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/kanboard.maintain.svg) -[![Installer Kanboard avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=kanboard) +[![Installer Kanboard avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=kanboard) *[Read this readme in english.](./README.md)* @@ -11,7 +11,7 @@ Si vous n'avez pas YunoHost, consultez [le guide](https://yunohost.org/#/install ## Vue d'ensemble Kanboard est un gestionnaire de tâches visuel qui permet de gérer facilement des petits projets de manière collaborative. L'outil est particulièrement adapté aux personnes qui utilisent la méthode Kanban. On peut voir Kanboard comme une alternative (simplifiée) au logiciel propriétaire Trello. Kanboard est un logiciel minimaliste, il se concentre uniquement sur les fonctionnalités réellement nécessaires. L'interface utilisateur est simple et clair. L'outil est prévu pour fonctionner sur une petite machine tel qu'un Raspberry Pi ou un serveur virtuel privé (VPS). Il n'y a aucune dépendance externe, le glisser-déposer des tâches utilise les nouvelles API de HTML5. -**Version incluse :** 1.2.16 +**Version incluse :** 1.2.17 ## Captures d'écran diff --git a/check_process b/check_process index f50d9d5..3ecab30 100644 --- a/check_process +++ b/check_process @@ -15,11 +15,8 @@ upgrade=1 from_commit=f159f7a9bdbe470ec026edf09a6eebf10f23425e backup_restore=1 multi_instance=1 - incorrect_path=1 port_already_use=0 change_url=1 -;;; Levels - Level 5=auto ;;; Upgrade options ; commit=f159f7a9bdbe470ec026edf09a6eebf10f23425e name=Create check_process diff --git a/conf/app.src b/conf/app.src index 466ac16..c884305 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/kanboard/kanboard/archive/v1.2.16.tar.gz -SOURCE_SUM=d43bbabceb47f42d3418bfb7abf8af2ad01f00304ffcfc644abd9feca9d9ceef +SOURCE_URL=https://github.com/kanboard/kanboard/archive/v1.2.17.tar.gz +SOURCE_SUM=268121f0fd11bb05d8ae6bc3ccabb56b177287d604f0192f9d1a0777cba83de2 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/conf/config.php b/conf/config.php index 7ae3929..49ef0ad 100644 --- a/conf/config.php +++ b/conf/config.php @@ -36,6 +36,9 @@ define('MAIL_CONFIGURATION', true); // E-mail address for the "From" header (notifications) define('MAIL_FROM', '__EMAIL__'); +// E-mail address used for the "Bcc" header to send a copy of all notifications +define('MAIL_BCC', ''); + // Mail transport available: "smtp", "sendmail", "mail" (PHP mail function), "postmark", "mailgun", "sendgrid" define('MAIL_TRANSPORT', 'mail'); diff --git a/conf/nginx.conf b/conf/nginx.conf index f1689fc..81bdd36 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -14,7 +14,7 @@ location __PATH__/ { try_files $uri $uri/ /index.php?$args; # Override CSP header to make SSOWAT user panel compatible with kanboard - more_set_headers Content-Security-Policy "default-src 'self' 'unsafe-eval' data:;"; + more_set_headers 'Content-Security-Policy: default-src, self, unsafe-eval, data'; location __PATH__/(?:kanboard|config.php|config.default.php) { deny all; diff --git a/manifest.json b/manifest.json index cd8d2c6..36d03d9 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Kanban project management software", "fr": "Logiciel de gestion de projet Kanban" }, - "version": "1.2.16~ynh1", + "version": "1.2.17~ynh1", "url": "https://kanboard.net/", "license": "MIT", "maintainer": { From 3c04f6157910a5eb91fe3a162d134ca1eefa7911 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 28 Dec 2020 11:17:30 +0100 Subject: [PATCH 11/22] Update app.src --- conf/app.src | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/app.src b/conf/app.src index c884305..a92ac97 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ SOURCE_URL=https://github.com/kanboard/kanboard/archive/v1.2.17.tar.gz -SOURCE_SUM=268121f0fd11bb05d8ae6bc3ccabb56b177287d604f0192f9d1a0777cba83de2 +SOURCE_SUM=1f96d623afea0839d9f912e87a53e7c3fc47b457fe45d2b8c5ce01761f35e69f SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true From 6a8756cc0c1f01db1d40a577a9bd379141e88f8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 28 Dec 2020 12:06:10 +0100 Subject: [PATCH 12/22] Fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 027f36d..a8f685e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Kanboard for Yunohost +# Kanboard for YunoHost [![Integration level](https://dash.yunohost.org/integration/kanboard.svg)](https://dash.yunohost.org/appci/app/kanboard) ![](https://ci-apps.yunohost.org/ci/badges/kanboard.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/kanboard.maintain.svg) [![Install Kanboard with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=kanboard) From c6fe23cd60819526e13946b54abbdc0ed93378dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 28 Dec 2020 12:06:33 +0100 Subject: [PATCH 13/22] Fix typo --- README_fr.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README_fr.md b/README_fr.md index 0de5302..e5b5d6d 100644 --- a/README_fr.md +++ b/README_fr.md @@ -1,4 +1,4 @@ -# Kanboard pour Yunohost +# Kanboard pour YunoHost [![Integration level](https://dash.yunohost.org/integration/kanboard.svg)](https://dash.yunohost.org/appci/app/kanboard) ![](https://ci-apps.yunohost.org/ci/badges/kanboard.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/kanboard.maintain.svg) [![Installer Kanboard avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=kanboard) From 53a886c7b02c900531bf3efc262750d6567949e7 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 29 Dec 2020 09:56:20 +0100 Subject: [PATCH 14/22] Upgrade to 1.2.18 --- README.md | 2 +- README_fr.md | 2 +- conf/app.src | 4 ++-- conf/nginx.conf | 2 +- manifest.json | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a8f685e..18f48c4 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to ## Overview Kanboard is a visual task manager that makes it easy to manage small projects in a collaborative way. The tool is particularly suitable for people who use the Kanban method. Kanboard can be seen as a (Simplified) alternative to the proprietary Trello software. Kanboard is a minimalist software, it focuses only on the features that are really necessary. The user interface is simple and clear. The tool is designed to run on a small machine such as a Raspberry Pi or a Virtual Private Server (VPS). There are no external dependencies, drag and drop of tasks uses the new HTML5 APIs. -**Shipped version:** 1.2.17 +**Shipped version:** 1.2.18 ## Screenshots diff --git a/README_fr.md b/README_fr.md index e5b5d6d..67db2dc 100644 --- a/README_fr.md +++ b/README_fr.md @@ -11,7 +11,7 @@ Si vous n'avez pas YunoHost, consultez [le guide](https://yunohost.org/#/install ## Vue d'ensemble Kanboard est un gestionnaire de tâches visuel qui permet de gérer facilement des petits projets de manière collaborative. L'outil est particulièrement adapté aux personnes qui utilisent la méthode Kanban. On peut voir Kanboard comme une alternative (simplifiée) au logiciel propriétaire Trello. Kanboard est un logiciel minimaliste, il se concentre uniquement sur les fonctionnalités réellement nécessaires. L'interface utilisateur est simple et clair. L'outil est prévu pour fonctionner sur une petite machine tel qu'un Raspberry Pi ou un serveur virtuel privé (VPS). Il n'y a aucune dépendance externe, le glisser-déposer des tâches utilise les nouvelles API de HTML5. -**Version incluse :** 1.2.17 +**Version incluse :** 1.2.18 ## Captures d'écran diff --git a/conf/app.src b/conf/app.src index a92ac97..37c3417 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/kanboard/kanboard/archive/v1.2.17.tar.gz -SOURCE_SUM=1f96d623afea0839d9f912e87a53e7c3fc47b457fe45d2b8c5ce01761f35e69f +SOURCE_URL=https://github.com/kanboard/kanboard/archive/v1.2.18.tar.gz +SOURCE_SUM=ec690b3da779264b9abf05f9da88894b355b01eedc8a6ffa4e29d6994d54fe6b SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/conf/nginx.conf b/conf/nginx.conf index 81bdd36..ec85770 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -14,7 +14,7 @@ location __PATH__/ { try_files $uri $uri/ /index.php?$args; # Override CSP header to make SSOWAT user panel compatible with kanboard - more_set_headers 'Content-Security-Policy: default-src, self, unsafe-eval, data'; + more_set_headers Content-Security-Policy "default-src 'self'; unsafe-eval 'data'"; location __PATH__/(?:kanboard|config.php|config.default.php) { deny all; diff --git a/manifest.json b/manifest.json index 36d03d9..533908f 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Kanban project management software", "fr": "Logiciel de gestion de projet Kanban" }, - "version": "1.2.17~ynh1", + "version": "1.2.18~ynh1", "url": "https://kanboard.net/", "license": "MIT", "maintainer": { From b0e55d147e35c65f4f6de79854985a889d8757dc Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 29 Dec 2020 10:16:39 +0100 Subject: [PATCH 15/22] Update nginx.conf --- conf/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index ec85770..1a504b3 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -14,7 +14,7 @@ location __PATH__/ { try_files $uri $uri/ /index.php?$args; # Override CSP header to make SSOWAT user panel compatible with kanboard - more_set_headers Content-Security-Policy "default-src 'self'; unsafe-eval 'data'"; + more_set_headers "Content-Security-Policy: default-src 'self'; unsafe-eval 'data'"; location __PATH__/(?:kanboard|config.php|config.default.php) { deny all; From fb53db7788026dd5fbc2ac0cd933e1d68990f097 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 29 Dec 2020 14:24:10 +0100 Subject: [PATCH 16/22] Fix CSP warnings --- conf/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 1a504b3..5b920fc 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -14,7 +14,7 @@ location __PATH__/ { try_files $uri $uri/ /index.php?$args; # Override CSP header to make SSOWAT user panel compatible with kanboard - more_set_headers "Content-Security-Policy: default-src 'self'; unsafe-eval 'data'"; + more_set_headers "Content-Security-Policy: 'default-src' 'self' 'unsafe-eval' data:;"; location __PATH__/(?:kanboard|config.php|config.default.php) { deny all; From ce9f789e3eb683b2746d5bff388ddecfb91eda50 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 29 Dec 2020 15:04:14 +0100 Subject: [PATCH 17/22] Update nginx.conf --- conf/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 5b920fc..f1689fc 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -14,7 +14,7 @@ location __PATH__/ { try_files $uri $uri/ /index.php?$args; # Override CSP header to make SSOWAT user panel compatible with kanboard - more_set_headers "Content-Security-Policy: 'default-src' 'self' 'unsafe-eval' data:;"; + more_set_headers Content-Security-Policy "default-src 'self' 'unsafe-eval' data:;"; location __PATH__/(?:kanboard|config.php|config.default.php) { deny all; From 924dfd2d4175f1b96f9710427d3fb36ddf8948d4 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 30 Dec 2020 10:38:04 +0100 Subject: [PATCH 18/22] Fix shasum --- conf/app.src | 2 +- manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/app.src b/conf/app.src index 37c3417..bcdcbda 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ SOURCE_URL=https://github.com/kanboard/kanboard/archive/v1.2.18.tar.gz -SOURCE_SUM=ec690b3da779264b9abf05f9da88894b355b01eedc8a6ffa4e29d6994d54fe6b +SOURCE_SUM=10851cdc42c66b2bc742ac5b656a09da1b60c65c1f73876fc6c689e9385d5811 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/manifest.json b/manifest.json index 533908f..6c012c3 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Kanban project management software", "fr": "Logiciel de gestion de projet Kanban" }, - "version": "1.2.18~ynh1", + "version": "1.2.18~ynh2", "url": "https://kanboard.net/", "license": "MIT", "maintainer": { From bbbc9693162e21c7cecedfcbd7fc5750f6f8b891 Mon Sep 17 00:00:00 2001 From: Rasmus Mattsson Kallio Date: Fri, 1 Jan 2021 22:07:14 +0100 Subject: [PATCH 19/22] Add newline before EOF in /etc/cron.d/kanboard Should fix the following error in /var/log/syslog: cron[1049]: (*system*kanboard) ERROR (Missing newline before EOF, this crontab file will be ignored) --- conf/cron_kanboard | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/cron_kanboard b/conf/cron_kanboard index eb9679c..9d2d511 100644 --- a/conf/cron_kanboard +++ b/conf/cron_kanboard @@ -1,2 +1,2 @@ # Execute the daily cronjob at 8am -0 8 * * * __APP__ cd "__FINALPATH__" && PHP__PHPVERSION__ ./cli cronjob >/dev/null 2>&1 \ No newline at end of file +0 8 * * * __APP__ cd "__FINALPATH__" && PHP__PHPVERSION__ ./cli cronjob >/dev/null 2>&1 From 62599506e299b3469093e1122f347c6326a45301 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 14 Mar 2021 22:06:33 +0100 Subject: [PATCH 20/22] Update manifest.json --- manifest.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index 6c012c3..293d496 100644 --- a/manifest.json +++ b/manifest.json @@ -10,8 +10,8 @@ "url": "https://kanboard.net/", "license": "MIT", "maintainer": { - "name": "YunoHost Contributors", - "email": "apps@yunohost.org" + "name": "", + "email": "" }, "requirements": { "yunohost": ">= 3.8.1" From 84a8510a75947f89c102b7907220d55f5165f552 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 14 Mar 2021 22:07:27 +0100 Subject: [PATCH 21/22] Update manifest.json --- manifest.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index 293d496..6c012c3 100644 --- a/manifest.json +++ b/manifest.json @@ -10,8 +10,8 @@ "url": "https://kanboard.net/", "license": "MIT", "maintainer": { - "name": "", - "email": "" + "name": "YunoHost Contributors", + "email": "apps@yunohost.org" }, "requirements": { "yunohost": ">= 3.8.1" From 8ddf29d3b37871acb675d06496bc7b67e1efaa50 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 14 Mar 2021 22:07:41 +0100 Subject: [PATCH 22/22] Update manifest.json --- manifest.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index 6c012c3..293d496 100644 --- a/manifest.json +++ b/manifest.json @@ -10,8 +10,8 @@ "url": "https://kanboard.net/", "license": "MIT", "maintainer": { - "name": "YunoHost Contributors", - "email": "apps@yunohost.org" + "name": "", + "email": "" }, "requirements": { "yunohost": ">= 3.8.1"