diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index ba827a8..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,59 +0,0 @@ -# Changelog - -## [Unreleased] - -## [2018-04-22a~ynhXX] - -### Added - -- Upgrade actions and config-panel scripts - ------------- - -## [2018-04-22b~ynh1] - 2020-03-23 - -### Added - -- New DokuWiki version `2018-04-22b` -- Changelog available in `CHANGELOG.md` - -### Changed - -- Upgrade content of file `pull_request_template.md` - -## [2018-04-22a~ynh3] - 2020-02-20 - -### Added - -- Use 'URL rewrite' for prettier URLs - -### Changed - -- Activate URL rewrite by default (does not break old links) - -### Removed - -- Unused DokuWiki config file - -## [2018-04-22a~ynh2] - 2020-02-20 - -### Added - -- Add fail2ban support to avoid bruteforce login attempts - -### Changed - -- Global upgrade of the package - -### Fixed - -- Get rid of the php ini file and merge its content into the pool file -- Update Readme following last work made on the package and current version in testing branch - -### Removed - -- Unused config file settings - -## [Previous versions] - YYYY-MM-DD - -- Will be written (one day maybye) diff --git a/README.md b/README.md index dadfba7..fea004e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # DokuWiki for YunoHost -[![Integration level](https://dash.yunohost.org/integration/dokuwiki.svg)](https://dash.yunohost.org/appci/app/dokuwiki) ![](https://ci-apps.yunohost.org/ci/badges/dokuwiki.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/dokuwiki.maintain.svg) +[![Integration level](https://dash.yunohost.org/integration/dokuwiki.svg)](https://dash.yunohost.org/appci/app/dokuwiki) [![Install DokuWiki with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=dokuwiki) *[Lire ce readme en français.](./README_fr.md)* @@ -12,11 +12,11 @@ If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to DokuWiki is a simple to use and highly versatile Open Source wiki software that doesn't require a database. It is loved by users for its clean and readable syntax. The ease of maintenance, backup and integration makes it an administrator's favorite. Built in access controls and authentication connectors make DokuWiki especially useful in the enterprise context and the large number of plugins contributed by its vibrant community allow for a broad range of use cases beyond a traditional wiki. -**Shipped version:** 2020-07-29 +**Shipped version:** 2018-04-22a "Greebo" ## Screenshots -![Screenshot of DokuWiki main window](sources/DokuWiki_Screenshot.png) +![](https://www.dokuwiki.org/_media/dokuwikimainwindow.png) ## Demo @@ -38,27 +38,38 @@ DokuWiki is a simple to use and highly versatile Open Source wiki software that ### Supported architectures -* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/dokuwiki%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/dokuwiki/) +* x86-64b - [![Build Status](https://ci-apps.yunohost.org/ci/logs/dokuwiki%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/dokuwiki/) * ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/dokuwiki%20%28Apps%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/dokuwiki/) +* Jessie x86-64b - [![Build Status](https://ci-stretch.nohost.me/ci/logs/dokuwiki%20%28Apps%29.svg)](https://ci-stretch.nohost.me/ci/apps/dokuwiki/) ## Limitations -* Cannot create or login with DokuWiki internal users, only users from YunoHost (Work needed for [authchained plugin](https://www.dokuwiki.org/plugin:authchained)) +* Cannot create or login with dokuwiki internal users, only users from Yunohost (Work needed for [authchained plugin](https://www.dokuwiki.org/plugin:authchained)) + +## Additional information + +### Changelog + +* *Many missing - List taken from previous documentation* +* 07 Mar 2017 - Update app +* 11 Feb 2017 - Create script app ## Links -* Report a bug: https://github.com/YunoHost-Apps/dokuwiki_ynh/issues -* App website: https://www.dokuwiki.org -* Upstream app repository: https://github.com/splitbrain/dokuwiki -* YunoHost website: https://yunohost.org + * Report a bug: https://github.com/YunoHost-Apps/dokuwiki_ynh/issues + * App website: https://www.dokuwiki.org + * Upstream app repository: https://github.com/splitbrain/dokuwiki + * YunoHost website: https://yunohost.org --- ## Developers infos -Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/dokuwiki_ynh/tree/testing) +**Only if you know what you are doing AND want to switch to an unstable branch for testing or coding** -To try the testing branch, please proceed like that. +Instead of merging directly into `master`, please do your pull request to the [`testing` branch](https://github.com/YunoHost-Apps/dokuwiki_ynh/tree/testing) + +To try the `testing` branch, please proceed like that. ``` sudo yunohost app install https://github.com/YunoHost-Apps/dokuwiki_ynh/tree/testing --debug or diff --git a/README_fr.md b/README_fr.md index 0796ecc..fe39537 100644 --- a/README_fr.md +++ b/README_fr.md @@ -1,22 +1,22 @@ -# DokuWiki pour YunoHost +# Dokuwiki pour YunoHost -[![Niveau d'intégration](https://dash.yunohost.org/integration/dokuwiki.svg)](https://dash.yunohost.org/appci/app/dokuwiki) ![](https://ci-apps.yunohost.org/ci/badges/dokuwiki.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/dokuwiki.maintain.svg) -[![Installer DokuWiki avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=dokuwiki) +[![Niveau d'intégration](https://dash.yunohost.org/integration/dokuwiki.svg)](https://dash.yunohost.org/appci/app/dokuwiki) +[![Installer DokuWiki grâce à YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=dokuwiki) -*[Read this readme in english.](./README.md)* +*[Read this readme in english.](./README.md)* -> *Ce package vous permet d'installer DokuWiki rapidement et simplement sur un serveur YunoHost. +> *Ce package vous permet d'installer Dokuwiki rapidement et simplement sur un serveur Yunohost. Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.* ## Vue d'ensemble DokuWiki est un logiciel wiki Open Source simple à utiliser et très polyvalent qui ne nécessite pas de base de données. Il est apprécié par les utilisateurs pour sa syntaxe propre et lisible. La facilité de maintenance, de sauvegarde et d'intégration en fait un favori d'administrateur. Des contrôles d'accès et des connecteurs d'authentification intégrés rendent DokuWiki particulièrement utile dans le contexte de l'entreprise et le grand nombre de plugins apportés par sa communauté dynamique permettent un large éventail de cas d'utilisation au-delà d'un wiki traditionnel. -**Version incluse:** 2020-07-29 +**Version incluse:** 2018-04-22a "Greebo" ## Captures d'écran -![Capture d'écran](sources/DokuWiki_Screenshot.png) +![](https://www.dokuwiki.org/_media/dokuwikimainwindow.png) ## Démo @@ -26,8 +26,8 @@ DokuWiki est un logiciel wiki Open Source simple à utiliser et très polyvalent ## Documentation -* Documentation officielle : https://www.dokuwiki.org/manual -* Documentation YunoHost : https://yunohost.org/#/app_dokuwiki +* Documentation officielle: https://www.dokuwiki.org/manual +* Documentation YunoHost: https://yunohost.org/#/app_dokuwiki ## Caractéristiques spécifiques YunoHost @@ -38,33 +38,39 @@ DokuWiki est un logiciel wiki Open Source simple à utiliser et très polyvalent ### Architectures matérielles supportées -* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/dokuwiki%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/dokuwiki/) +* x86-64b - [![Build Status](https://ci-apps.yunohost.org/ci/logs/dokuwiki%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/dokuwiki/) * ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/dokuwiki%20%28Apps%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/dokuwiki/) +* Jessie x86-64b - [![Build Status](https://ci-stretch.nohost.me/ci/logs/dokuwiki%20%28Apps%29.svg)](https://ci-stretch.nohost.me/ci/apps/dokuwiki/) ## Limitations -* Impossible d'ajouter et d'utiliser les utilisateurs internes de DokuWiki, seulement ceux de YunoHost (travail nécessaire pour [authchained plugin](https://www.dokuwiki.org/plugin:authchained)) +* Impossible d'ajouter et d'utiliser les utilisateurs internes de DokuWiki, seulement ceux de Yunohost (travail nécessaire pour [authchained plugin](https://www.dokuwiki.org/plugin:authchained)) ## Informations additionnelles ### Historique des versions +* *Many missing - List taken from previous documentation* +* 07 Mar 2017 - Update app +* 11 Feb 2017 - Create script app + ## Liens - * Signaler un bug : https://github.com/YunoHost-Apps/dokuwiki_ynh/issues - * Site de l'application : https://www.dokuwiki.org - * Dépôt de l'application principale : https://github.com/splitbrain/dokuwiki - * Site web YunoHost : https://yunohost.org/ + * Signaler un bug: https://github.com/YunoHost-Apps/dokuwiki_ynh/issues + * Site de l'application:https://www.dokuwiki.org + * Dépôt de l'application principale: https://github.com/splitbrain/dokuwiki + * 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/dokuwiki_ynh/tree/testing). +**Seulement si vous voulez utiliser une branche de test pour le codage, au lieu de fusionner directement dans la banche principale.** + +Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/REPLACEBYYOURAPP_ynh/tree/testing). Pour essayer la branche testing, procédez comme suit. - -```bash +``` sudo yunohost app install https://github.com/YunoHost-Apps/dokuwiki_ynh/tree/testing --debug ou sudo yunohost app upgrade dokuwiki -u https://github.com/YunoHost-Apps/dokuwiki_ynh/tree/testing --debug diff --git a/conf/app.src b/conf/app.src index 2274131..e42acb7 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,6 +1,6 @@ -SOURCE_URL=https://github.com/splitbrain/dokuwiki/archive/release_stable_2020-07-29.tar.gz -SOURCE_SUM=cc1cd9f00095fea327baa79d8f02c904fe1c37bc3f8fd9999eaf646ee9928884 -SOURCE_SUM_PRG=sha256sum +SOURCE_URL=https://download.dokuwiki.org/src/dokuwiki/dokuwiki-2018-04-22a.tgz +SOURCE_SUM=18765a29508f96f9882349a304bffc03 +SOURCE_SUM_PRG=md5sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true SOURCE_FILENAME= diff --git a/conf/nginx.conf b/conf/nginx.conf index 5cb057b..64fc3ba 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -39,12 +39,12 @@ location __PATH__/ { } # Deny Access to htaccess-Files for Apache - location ~ __PATH__/\.ht { + location ~ /\.ht { deny all; } # Serve static files - location ~ ^__PATH__/lib.*\.(gif|png|ico|jpg)$ { + location ~ ^/lib.*\.(gif|png|ico|jpg)$ { expires 30d; } diff --git a/manifest.json b/manifest.json index 53dd472..1c3ae56 100644 --- a/manifest.json +++ b/manifest.json @@ -3,13 +3,13 @@ "id": "dokuwiki", "packaging_format": 1, "description": { - "en": "A lightweight, simple to use and highly versatile wiki", - "fr": "Un wiki léger, simple à utiliser et très polyvalent", - "de": "Ein standardkonformes, einfach zu benutzendes Wiki und zielt hauptsächlich auf die Erstellung von Dokumentationen aller Art ab.", - "es": "Un sistema de Wiki de uso sencillicimo y compatible con los estándares.", - "it": "Un Wiki aderente agli standard, semplice da usare, finalizzato principalmente alla creazione di documentazione di qualsiasi tipo." + "en": "DokuWiki is a simple to use and highly versatile Open Source wiki software that doesn't require a database.", + "fr": "DokuWiki est un wiki Open Source simple à utiliser et très polyvalent qui n'exige aucune base de données.", + "de": "DokuWiki ist ein standardkonformes, einfach zu benutzendes Wiki und zielt hauptsächlich auf die Erstellung von Dokumentationen aller Art ab.", + "es": "DokuWiki es un sistema de Wiki de uso sencillicimo y compatible con los estándares.", + "it": "DokuWiki è un Wiki aderente agli standard, semplice da usare, finalizzato principalmente alla creazione di documentazione di qualsiasi tipo." }, - "version": "2020-07-29~ynh1", + "version": "2018-04-22a~ynh3", "url": "https://www.dokuwiki.org", "license": "GPL-2.0-or-later", "maintainer": { @@ -63,10 +63,10 @@ "name": "is_public", "type": "boolean", "ask": { - "en": "Is it a public DokuWiki site?", + "en": "Is it a public DokuWiki site ?", "fr": "Est-ce un site public ?" }, - "default": true + "default": "true" }, { "name": "language", diff --git a/pull_request_template.md b/pull_request_template.md index 8f984e1..fceb723 100644 --- a/pull_request_template.md +++ b/pull_request_template.md @@ -2,7 +2,7 @@ - *Description of why you made this PR* ## Solution -- *And how do you fix that problem* +- *And how you fix that* ## PR Status - [ ] Code finished. @@ -13,10 +13,12 @@ ## Validation --- +*Minor decision* +- **Upgrade previous version** : - [ ] **Code review** : -- [ ] **Approval (LGTM)** : -*Code review and approval have to be from a member of @YunoHost-Apps/apps-group* -- **CI succeeded** : -[![Build Status](https://ci-apps-hq.yunohost.org/jenkins/job/dokuwiki_ynh%20PR-NUM-/badge/icon)](https://ci-apps-hq.yunohost.org/jenkins/job/dokuwiki_ynh%20PR-NUM-/) +- [ ] **Approval (LGTM)** : +- [ ] **Approval (LGTM)** : +- **CI succeeded** : +[![Build Status](https://ci-apps-hq.yunohost.org/jenkins/job/dokuwiki_ynh%20PR-NUM-/badge/icon)](https://ci-apps-hq.yunohost.org/jenkins/job/dokuwiki_ynh%20PR-NUM-/) *Please replace '-NUM-' in this link by the PR number.* When the PR is marked as ready to merge, you have to wait for 3 days before really merging it. diff --git a/scripts/backup b/scripts/backup index 176834b..b931a0e 100755 --- a/scripts/backup +++ b/scripts/backup @@ -19,7 +19,7 @@ ynh_abort_if_errors #================================================= # LOAD SETTINGS #================================================= -ynh_print_info --message="Loading installation settings..." +ynh_script_progression --message="Loading installation settings..." app=$YNH_APP_INSTANCE_NAME @@ -27,31 +27,32 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path) domain=$(ynh_app_setting_get --app=$app --key=domain) #================================================= -# DECLARE DATA AND CONF FILES TO BACKUP -#================================================= -ynh_print_info --message="Declaring files to be backed up..." - +# STANDARD BACKUP STEPS #================================================= # 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..." --weight=2 ynh_backup --src_path="/etc/php/7.0/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" @@ -60,4 +61,4 @@ ynh_backup --src_path="/etc/fail2ban/filter.d/$app.conf" # END OF SCRIPT #================================================= -ynh_print_info --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." +ynh_script_progression --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." --last diff --git a/scripts/change_url b/scripts/change_url index fe9ea64..6851308 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -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 @@ -81,7 +81,7 @@ fi #================================================= # UPGRADE FAIL2BAN #================================================= -ynh_script_progression --message="Reconfiguring Fail2Ban..." --weight=6 +ynh_script_progression --message="Reconfiguring fail2ban..." --weight=6 ynh_add_fail2ban_config --logpath="/var/log/nginx/$new_domain-error.log" --failregex="^.*authentication failure. while reading response header from upstream, client: ,.*POST $new_path.*$" --max_retry=5 @@ -90,7 +90,7 @@ ynh_add_fail2ban_config --logpath="/var/log/nginx/$new_domain-error.log" --failr #================================================= # 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 diff --git a/scripts/install b/scripts/install index 820c3ef..4ceb331 100755 --- a/scripts/install +++ b/scripts/install @@ -64,9 +64,9 @@ ynh_setup_source --dest_dir="$final_path" #================================================= # 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 +# Create a dedicated nginx config ynh_add_nginx_config #================================================= @@ -80,9 +80,9 @@ 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=2 -# Create a dedicated PHP-FPM config +# Create a dedicated php-fpm config ynh_add_fpm_config #================================================= @@ -90,7 +90,7 @@ ynh_add_fpm_config #================================================= # CUSTOMIZE DOKUWIKI #================================================= -ynh_script_progression --message="Configuring DokuWiki..." --weight=2 +ynh_script_progression --message="Configuring dokuwiki..." --weight=2 # Loading order of configuration files # @@ -103,8 +103,8 @@ ynh_script_progression --message="Configuring DokuWiki..." --weight=2 # See https://www.dokuwiki.org/plugin:config#protecting_settings -### Copy YunoHost specific configuration -# This File cannot be modified directly by DokuWiki, only by hand or by YunoHost +### Copy Yunohost specific configuration +# This File cannot be modified directly by Dokuwiki, only by hand or by Yunohost # It will only be updated by Yunohost package or directly by adventurous users cp ../conf/local.protected.php $final_path/conf @@ -112,7 +112,7 @@ cp ../conf/local.protected.php $final_path/conf ynh_replace_string --match_string="__YNH_ADMIN_USER__" --replace_string="$admin" --target_file="$final_path/conf/local.protected.php" -# This file might be modified by DokuWiki admin panel or by plugins +# This file might be modified by dokuwiki admin panel or by plugins # It will not be modified by Yunohost in order to keep user settings cp ../conf/local.php $final_path/conf @@ -159,7 +159,7 @@ ynh_store_file_checksum --file="$final_path/conf/local.protected.php" #================================================= # INSTALL LOGAUTHERROR PLUGIN FOR FAIL2BAN #================================================= -ynh_script_progression --message="Installing logautherror plugin for Fail2Ban..." --weight=2 +ynh_script_progression --message="Installing logautherror plugin for fail2ban..." --weight=2 ynh_setup_source --dest_dir="$final_path/lib/plugins/logautherror" --source_id=logautherror @@ -209,7 +209,7 @@ find $final_path/lib -type d -print0 | xargs -0 chmod 0755 #================================================= # SETUP FAIL2BAN #================================================= -ynh_script_progression --message="Configuring Fail2Ban..." --weight=7 +ynh_script_progression --message="Configuring fail2ban..." --weight=7 ynh_add_fail2ban_config --logpath="/var/log/nginx/$domain-error.log" --failregex="^.*authentication failure. while reading response header from upstream, client: ,.*POST $path_url.*$" --max_retry=5 @@ -228,7 +228,7 @@ fi #================================================= # 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 diff --git a/scripts/remove b/scripts/remove index b0d36b7..6bb05bb 100755 --- a/scripts/remove +++ b/scripts/remove @@ -32,23 +32,23 @@ 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..." -# 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 #================================================= # 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 diff --git a/scripts/restore b/scripts/restore index e36a534..0cf8f4a 100755 --- a/scripts/restore +++ b/scripts/restore @@ -94,7 +94,7 @@ ynh_restore_file --origin_path="/etc/php/7.0/fpm/pool.d/$app.conf" #================================================= # RESTORE FAIL2BAN CONFIGURATION #================================================= -ynh_script_progression --message="Restoring the Fail2Ban configuration..." --weight=7 +ynh_script_progression --message="Restoring the fail2ban configuration..." --weight=7 ynh_restore_file --origin_path="/etc/fail2ban/jail.d/$app.conf" ynh_restore_file --origin_path="/etc/fail2ban/filter.d/$app.conf" @@ -105,7 +105,7 @@ 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 and php-fpm..." --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 645baee..8e9eaaa 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -63,10 +63,10 @@ fi -# YunoHost specific configuration, if it isn't exist already +# Yunohost specific configuration, if it isn't exist already # Previously, these settings were store in an unique "dokuwiki.php" -# Now, they are split in multiple files to ease upgrading process (separate YunoHost config from user config) +# Now, they are split in multiple files to ease upgrading process (separate Yunohost config from user config) # Loading order of configuration files # @@ -176,9 +176,9 @@ fi #================================================= # 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 #================================================= @@ -192,9 +192,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..." -# Create a dedicated PHP-FPM config +# Create a dedicated php-fpm config ynh_add_fpm_config #================================================= @@ -203,7 +203,7 @@ ynh_add_fpm_config if [ "$upgrade_type" == "UPGRADE_APP" ] then - ynh_script_progression --message="Upgrading DokuWiki..." --weight=7 + ynh_script_progression --message="Upgrading dokuwiki..." --weight=7 # Remove upgrade notification inside Dokuwiki's admin panel # See https://www.dokuwiki.org/update_check @@ -256,7 +256,7 @@ ynh_store_file_checksum --file="$final_path/conf/local.protected.php" #================================================= # INSTALL LOGAUTHERROR PLUGIN FOR FAIL2BAN #================================================= -ynh_script_progression --message="Upgrading logautherror plugin for Fail2Ban..." --weight=2 +ynh_script_progression --message="Upgrading logautherror plugin for fail2ban..." --weight=2 ynh_setup_source --dest_dir="$final_path/lib/plugins/logautherror" --source_id=logautherror @@ -306,7 +306,7 @@ find $final_path/lib -type d -print0 | xargs -0 chmod 0755 #================================================= # 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: ,.*POST $path_url.*$" --max_retry=5 @@ -329,7 +329,7 @@ fi #================================================= # 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 diff --git a/sources/DokuWiki_Screenshot.png b/sources/DokuWiki_Screenshot.png deleted file mode 100644 index dcba61c..0000000 Binary files a/sources/DokuWiki_Screenshot.png and /dev/null differ