See https://github.com/YunoHost-Apps/dokuwiki_ynh/pull/37#issuecomment-404597751
Just one last thing, if you put the yunohost requirement at 2.7.14 (last jessie version), you can remove any reference to #sub_path_only in nginx into your install script, as well as upgrade and change_url scripts.
This fix, alias_traversal, is now handled by the helper itself.
- migrate from custom helper '.fonctions' to official helpers
- Use '_common.sh' + various templates from 'example_ynh'
- update 'manifest' with new Yunohost version requirement
- redo 'install' script
* [fix] Reactivate integrity check #26
* [fix] Use boolean type for is_public #25
* [fix] isolate user with php-fpm
* [fix] boolean is_public for check_process
* [fix] Create user for upgrade and restore
* [fix] delete choices manifest.json
* [fix] load generic function
* [fix] delete reload php5-fpm
* [fix] owner file with user dokuwiki
* [fix] correctly ssowat config for install
* [fix] Get file fonction if not been to the current directory
* [fix] owner file with user dokuwiki - upgrade
* [fix] Clean code
* Reload php-fpm et after remove user
* [fix] upgrade php5-fpm with a good user
* [fix] owner root for all files & owner dokuwiki for write access
* [fix] owner root for all files & owner dokuwiki for write access (upgrade script)
* [fix] owner read & write for plugins directory
It allows to prevent the number of arguments and environment variables passed
to chmod - which often fails with the error: "Argument list too long".
See: http://unix.stackexchange.com/a/72822