GithubHelp home page GithubHelp logo

yunohost-apps / jirafeau_ynh Goto Github PK

View Code? Open in Web Editor NEW
13.0 11.0 13.0 382 KB

Jirafeau package for YunoHost

Home Page: https://gitlab.com/mojo42/Jirafeau

License: GNU General Public License v3.0

Shell 74.84% PHP 25.16%
file-upload file-sharing yunohost official-ynh jirafeau yunohost-apps

jirafeau_ynh's Introduction

Jirafeau for YunoHost

Integration level Working status Maintenance status

Install Jirafeau with YunoHost

Read this README in other languages.

This package allows you to install Jirafeau quickly and simply on a YunoHost server.
If you don't have YunoHost, please consult the guide to learn how to install it.

Overview

Jirafeau offers the possibility to host and share your files with ease. Choose a file, Jirafeau will provide you with a link with many options. It is possible to protect your links with a password as well as to choose how long the file will be kept on the server. The file and the link will self-destruct after this time. Downloads of transmitted files can be limited to a certain date, and each file can self-destruct after the first download. Jirafeau allows you to configure maximum retention times and maximum size per file. Encryption is available as an option.

Shipped version: 4.5.0~ynh2

Demo: https://demo.yunohost.org/jirafeau/

Screenshots

Screenshot of Jirafeau

Documentation and resources

Developer info

Please send your pull request to the testing branch.

To try the testing branch, please proceed like that:

sudo yunohost app install https://github.com/YunoHost-Apps/jirafeau_ynh/tree/testing --debug
or
sudo yunohost app upgrade jirafeau -u https://github.com/YunoHost-Apps/jirafeau_ynh/tree/testing --debug

More info regarding app packaging: https://yunohost.org/packaging_apps

jirafeau_ynh's People

Contributors

alexaubin avatar ericgaspar avatar jeromelebleu avatar jimbojoe avatar julienmalik avatar kay0u avatar kloadut avatar l33tsheep avatar lapineige avatar m5oul avatar maniackcrudelis avatar nicofrand avatar oniricorpe avatar opi avatar psycojoker avatar salamandar avatar trogeat avatar yalh76 avatar yunohost-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jirafeau_ynh's Issues

Special character support in password

Hello,

During the installation of jirafeau in the web interface of Yunohost, I set a password to upload file but this password doesn't work when I want to use the app.
I watched logs of the installation and I saw my password is truncated (only the last half is used).

My password contains special characters so maybe it could be a problem.

Big files upload don't give link in user page

Hello,
When i upload a file of 4go or more i the jirafeau page don't give me a the links at the user upload page, but in the admin pages the uploaded file is present with all the links...
How do i solve this problem?

here my nginx error logs:
[error] 2845#0: *236 upstream timed out (110: Connection timed out) while reading response header from upstream, client: XXX.XXX.XXX.XXX, server: mysrv.noho,st request: “POST /jirafeau/script.php HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php5-fpm-jirafeau.sock”, host: “mysrv.noho.st”, referrer: https://mysrv.noho.st/jirafeau/”`

here my php 5 fpm log:
[29-May-2018 18:14:26] NOTICE: fpm is running, pid 774 [29-May-2018 18:14:26] NOTICE: ready to handle connections [29-May-2018 18:14:26] NOTICE: systemd monitor interval set to 10000ms [29-May-2018 19:21:03] WARNING: [pool jirafeau] server reached pm.max_children setting (6), consider raising it [29-May-2018 19:26:53] WARNING: [pool jirafeau] child 796, script '/var/www/jirafeau//script.php' (request: "POST /jirafeau/script.php") executing too slow (351.290675 sec), logging [29-May-2018 19:26:53] NOTICE: child 796 stopped for tracing [29-May-2018 19:26:53] NOTICE: about to trace 796 [29-May-2018 19:26:53] NOTICE: finished trace of 796

Keep user conf when upgrading

I don't know how is the normal process to upgrade from a version to another for Jirafeau.

But with Yunohost, it seems to overwrite the user config setting (defined in /var/www/jirafeau/lib/config.local.php).

I've indeed change the config to change $cfg['enable_crypt'] from false to true, but when I've done the Jirafeau upgrade, this change has been removed.

Previous version I've had: 3.3.0, now I have 3.4.1.

Jirafeau hosted webpage is empty (blank page) after fresh install

Describe the bug

Hello, after installing Jirafeau from Yunohost app center, I couldn't connect to it (blank page). Thank you for your kind help.

Context

  • Hardware: Old laptop or computer / connection to the app through Firefox
  • YunoHost version: 4.2.8
  • I have access to my server: through the webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • Using, or trying to install package version/branch: 4.3.0
  • If upgrading, current package version: no upgrade, only fresh install

Steps to reproduce

Connect from Webadmin or user account page, then click on Jirafeau, then you can see a blank (empty) page.

Expected behavior

The page shall show Jirafeau app

Logs

Installation was successful (green, no yellow/red flag)

args:
  app: jirafeau
  args: domain=maindomain.tld&path=%2Fjirafeau&admin_user=XXX&upload_password='****'&is_public=1
  force: false
  label: Jirafeau
  no_remove_on_failure: false
ended_at: 2021-09-11 21:14:04.291570
env:
  YNH_APP_ARG_ADMIN_USER: XXX
  YNH_APP_ARG_DOMAIN: maindomain.tld
  YNH_APP_ARG_IS_PUBLIC: '1'
  YNH_APP_ARG_PATH: /jirafeau
  YNH_APP_ID: jirafeau
  YNH_APP_INSTANCE_NAME: jirafeau
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_APP_MANIFEST_VERSION: 4.3.0~ynh2
error: null
interface: api
operation: app_install
parent: null
related_to:
- - app
  - jirafeau
started_at: 2021-09-11 21:13:38.422754
success: true
yunohost_version: 4.2.8.3

============

2021-09-11 23:13:38,442: INFO - Installation de jirafeau...
2021-09-11 23:13:38,704: DEBUG - Permission 'jirafeau.main' mise à jour
2021-09-11 23:13:38,866: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20210911-211338-permission_url-jirafeau" style="text-decoration:underline"> Mise à jour de l’URL associée à l’autorisation 'jirafeau' </a>'
2021-09-11 23:13:39,206: DEBUG - The permission database has been resynchronized
2021-09-11 23:13:39,422: DEBUG - La configuration de SSOwat a été regénérée
2021-09-11 23:13:39,609: DEBUG - Permission 'jirafeau.main' créée
2021-09-11 23:13:39,610: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20210911-211338-permission_create-jirafeau" style="text-decoration:underline"> Créer permission 'jirafeau' </a>'
2021-09-11 23:13:39,642: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./install"  7>&1']'
2021-09-11 23:13:39,665: DEBUG - + source _common.sh
2021-09-11 23:13:39,666: DEBUG - ++ YNH_PHP_VERSION=7.3
2021-09-11 23:13:39,667: DEBUG - + source /usr/share/yunohost/helpers
2021-09-11 23:13:39,667: DEBUG - +++ set +o
2021-09-11 23:13:39,668: DEBUG - +++ grep xtrace
2021-09-11 23:13:39,670: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2021-09-11 23:13:39,670: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2021-09-11 23:13:39,759: DEBUG - + ynh_abort_if_errors
2021-09-11 23:13:39,760: DEBUG - + set -o errexit
2021-09-11 23:13:39,761: DEBUG - + set -o nounset
2021-09-11 23:13:39,761: DEBUG - + trap ynh_exit_properly EXIT
2021-09-11 23:13:39,762: DEBUG - + domain=maindomain.tld
2021-09-11 23:13:39,763: DEBUG - + path_url=/jirafeau
2021-09-11 23:13:39,763: DEBUG - + admin_user=XXX
2021-09-11 23:13:39,764: DEBUG - + ynh_print_OFF
2021-09-11 23:13:39,764: DEBUG - + exec
2021-09-11 23:13:39,765: DEBUG - + echo ynh_print_ON
2021-09-11 23:13:39,765: DEBUG - + is_public=1
2021-09-11 23:13:39,766: DEBUG - + app=jirafeau
2021-09-11 23:13:40,007: DEBUG - + echo '[+...................] > Validating installation parameters...'
2021-09-11 23:13:40,009: INFO - [+...................] > Validating installation parameters...
2021-09-11 23:13:40,011: DEBUG - + final_path=/var/www/jirafeau
2021-09-11 23:13:40,011: DEBUG - + test '!' -e /var/www/jirafeau
2021-09-11 23:13:40,012: DEBUG - + ynh_webpath_register --app=jirafeau --domain=maindomain.tld --path_url=/jirafeau
2021-09-11 23:13:40,203: DEBUG - + yunohost app register-url jirafeau maindomain.tld /jirafeau
2021-09-11 23:13:42,802: DEBUG - + echo '[#+..................] > Storing installation settings...'
2021-09-11 23:13:42,803: DEBUG - + ynh_app_setting_set --app=jirafeau --key=domain --value=maindomain.tld
2021-09-11 23:13:42,808: INFO - [#+..................] > Storing installation settings...
2021-09-11 23:13:43,005: DEBUG - + [[ domain =~ (unprotected|protected|skipped)_ ]]
2021-09-11 23:13:43,006: DEBUG - + ynh_app_setting set jirafeau domain maindomain.tld
2021-09-11 23:13:43,131: DEBUG - + ynh_app_setting_set --app=jirafeau --key=path --value=/jirafeau
2021-09-11 23:13:43,322: DEBUG - + [[ path =~ (unprotected|protected|skipped)_ ]]
2021-09-11 23:13:43,323: DEBUG - + ynh_app_setting set jirafeau path /jirafeau
2021-09-11 23:13:43,437: DEBUG - + ynh_app_setting_set --app=jirafeau --key=admin --value=XXX
2021-09-11 23:13:43,628: DEBUG - + [[ admin =~ (unprotected|protected|skipped)_ ]]
2021-09-11 23:13:43,629: DEBUG - + ynh_app_setting set jirafeau admin XXX
2021-09-11 23:13:43,743: DEBUG - + ynh_app_setting_set --app=jirafeau --key=is_public --value=1
2021-09-11 23:13:43,931: DEBUG - + [[ is_public =~ (unprotected|protected|skipped)_ ]]
2021-09-11 23:13:43,932: DEBUG - + ynh_app_setting set jirafeau is_public 1
2021-09-11 23:13:44,264: DEBUG - + echo '[##+++...............] > Setting up source files...'
2021-09-11 23:13:44,266: INFO - [##+++...............] > Setting up source files...
2021-09-11 23:13:44,267: DEBUG - + ynh_app_setting_set --app=jirafeau --key=final_path --value=/var/www/jirafeau
2021-09-11 23:13:44,468: DEBUG - + [[ final_path =~ (unprotected|protected|skipped)_ ]]
2021-09-11 23:13:44,468: DEBUG - + ynh_app_setting set jirafeau final_path /var/www/jirafeau
2021-09-11 23:13:44,585: DEBUG - + ynh_setup_source --dest_dir=/var/www/jirafeau
2021-09-11 23:13:44,653: DEBUG - + source_id=app
2021-09-11 23:13:44,653: DEBUG - + keep=
2021-09-11 23:13:44,654: DEBUG - + local src_file_path=/var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf/app.src
2021-09-11 23:13:44,655: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf/app.src
2021-09-11 23:13:44,656: DEBUG - ++ cut --delimiter== --fields=2-
2021-09-11 23:13:44,662: DEBUG - + local src_url=https://gitlab.com/mojo42/Jirafeau/-/archive/4.3.0/Jirafeau-4.3.0.tar.gz
2021-09-11 23:13:44,664: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf/app.src
2021-09-11 23:13:44,665: DEBUG - ++ cut --delimiter== --fields=2-
2021-09-11 23:13:44,671: DEBUG - + local src_sum=77bd4b69cb822ac8cac9df6890f17a673c978b10d8dd6fce46b60c763b859f74
2021-09-11 23:13:44,674: DEBUG - ++ cut --delimiter== --fields=2-
2021-09-11 23:13:44,674: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf/app.src
2021-09-11 23:13:44,680: DEBUG - + local src_sumprg=sha256sum
2021-09-11 23:13:44,682: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf/app.src
2021-09-11 23:13:44,682: DEBUG - ++ cut --delimiter== --fields=2-
2021-09-11 23:13:44,689: DEBUG - + local src_format=tar.gz
2021-09-11 23:13:44,692: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf/app.src
2021-09-11 23:13:44,692: DEBUG - ++ cut --delimiter== --fields=2-
2021-09-11 23:13:44,698: DEBUG - + local src_extract=
2021-09-11 23:13:44,700: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf/app.src
2021-09-11 23:13:44,701: DEBUG - ++ cut --delimiter== --fields=2-
2021-09-11 23:13:44,707: DEBUG - + local src_in_subdir=true
2021-09-11 23:13:44,708: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf/app.src
2021-09-11 23:13:44,709: DEBUG - ++ cut --delimiter== --fields=2-
2021-09-11 23:13:44,714: DEBUG - + local src_filename=
2021-09-11 23:13:44,714: DEBUG - + src_sumprg=sha256sum
2021-09-11 23:13:44,715: DEBUG - + src_in_subdir=true
2021-09-11 23:13:44,715: DEBUG - + src_format=tar.gz
2021-09-11 23:13:44,716: DEBUG - ++ echo tar.gz
2021-09-11 23:13:44,717: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2021-09-11 23:13:44,721: DEBUG - + src_format=tar.gz
2021-09-11 23:13:44,721: DEBUG - + src_extract=true
2021-09-11 23:13:44,722: DEBUG - + '[' '' = '' ']'
2021-09-11 23:13:44,722: DEBUG - + src_filename=app.tar.gz
2021-09-11 23:13:44,722: DEBUG - + local local_src=/opt/yunohost-apps-src/jirafeau/app.tar.gz
2021-09-11 23:13:44,723: DEBUG - + mkdir -p /var/cache/yunohost/download/jirafeau/
2021-09-11 23:13:44,725: DEBUG - + src_filename=/var/cache/yunohost/download/jirafeau/app.tar.gz
2021-09-11 23:13:44,726: DEBUG - + test -e /opt/yunohost-apps-src/jirafeau/app.tar.gz
2021-09-11 23:13:44,727: DEBUG - + '[' -n https://gitlab.com/mojo42/Jirafeau/-/archive/4.3.0/Jirafeau-4.3.0.tar.gz ']'
2021-09-11 23:13:44,728: DEBUG - ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=/var/cache/yunohost/download/jirafeau/app.tar.gz https://gitlab.com/mojo42/Jirafeau/-/archive/4.3.0/Jirafeau-4.3.0.tar.gz
2021-09-11 23:13:45,222: DEBUG - + out='2021-09-11 23:13:45 URL:https://gitlab.com/mojo42/Jirafeau/-/archive/4.3.0/Jirafeau-4.3.0.tar.gz [299689] -> "/var/cache/yunohost/download/jirafeau/app.tar.gz" [1]'
2021-09-11 23:13:45,222: DEBUG - + sha256sum --check --status
2021-09-11 23:13:45,223: DEBUG - + echo '77bd4b69cb822ac8cac9df6890f17a673c978b10d8dd6fce46b60c763b859f74 /var/cache/yunohost/download/jirafeau/app.tar.gz'
2021-09-11 23:13:45,230: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2021-09-11 23:13:45,234: DEBUG - + '[' -n '' ']'
2021-09-11 23:13:45,234: DEBUG - + mkdir --parents /var/www/jirafeau
2021-09-11 23:13:45,239: DEBUG - + '[' -n /var/www/jirafeau ']'
2021-09-11 23:13:45,240: DEBUG - + '[' /var/www/jirafeau == /var/www/jirafeau ']'
2021-09-11 23:13:45,240: DEBUG - + _ynh_apply_default_permissions /var/www/jirafeau
2021-09-11 23:13:45,240: DEBUG - + local target=/var/www/jirafeau
2021-09-11 23:13:45,241: DEBUG - ++ tr -d '>= '
2021-09-11 23:13:45,242: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/manifest.json
2021-09-11 23:13:45,252: DEBUG - + local ynh_requirement=4.1.7
2021-09-11 23:13:45,252: DEBUG - + '[' -z 4.1.7 ']'
2021-09-11 23:13:45,253: DEBUG - + '[' 4.1.7 == null ']'
2021-09-11 23:13:45,253: DEBUG - + dpkg --compare-versions 4.1.7 ge 4.2
2021-09-11 23:13:45,259: DEBUG - + true
2021-09-11 23:13:45,259: DEBUG - + '[' tar.gz = zip ']'
2021-09-11 23:13:45,260: DEBUG - + local strip=
2021-09-11 23:13:45,260: DEBUG - + '[' true '!=' false ']'
2021-09-11 23:13:45,260: DEBUG - + '[' true == true ']'
2021-09-11 23:13:45,261: DEBUG - + local sub_dirs=1
2021-09-11 23:13:45,261: DEBUG - + strip='--strip-components 1'
2021-09-11 23:13:45,261: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
2021-09-11 23:13:45,262: DEBUG - + tar --extract --file=/var/cache/yunohost/download/jirafeau/app.tar.gz --directory=/var/www/jirafeau --strip-components 1
2021-09-11 23:13:45,299: DEBUG - + ynh_secure_remove --file=/var/cache/yunohost/download/jirafeau/app.tar.gz
2021-09-11 23:13:45,326: DEBUG - + local 'forbidden_path=     /var/www     /home/yunohost.app'
2021-09-11 23:13:45,327: DEBUG - + '[' 1 -ge 2 ']'
2021-09-11 23:13:45,327: DEBUG - + [[ -z /var/cache/yunohost/download/jirafeau/app.tar.gz ]]
2021-09-11 23:13:45,328: DEBUG - + [[      /var/www     /home/yunohost.app =~ /var/cache/yunohost/download/jirafeau/app\.tar\.gz ]]
2021-09-11 23:13:45,329: DEBUG - + [[ /var/cache/yunohost/download/jirafeau/app.tar.gz =~ ^/[[:alnum:]]+$ ]]
2021-09-11 23:13:45,329: DEBUG - + [[ z = \/ ]]
2021-09-11 23:13:45,330: DEBUG - + '[' -e /var/cache/yunohost/download/jirafeau/app.tar.gz ']'
2021-09-11 23:13:45,330: DEBUG - + rm --recursive /var/cache/yunohost/download/jirafeau/app.tar.gz
2021-09-11 23:13:45,331: DEBUG - + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/sources/patches/ ']'
2021-09-11 23:13:45,332: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/sources/extra_files/app
2021-09-11 23:13:45,333: DEBUG - + '[' -n '' ']'
2021-09-11 23:13:45,333: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2021-09-11 23:13:45,482: DEBUG - + echo '[#####+..............] > Configuring NGINX web server...'
2021-09-11 23:13:45,484: DEBUG - + ynh_add_nginx_config
2021-09-11 23:13:45,484: DEBUG - + local finalnginxconf=/etc/nginx/conf.d/maindomain.tld.d/jirafeau.conf
2021-09-11 23:13:45,485: DEBUG - + '[' /jirafeau '!=' / ']'
2021-09-11 23:13:45,485: DEBUG - + ynh_replace_string '--match_string=^#sub_path_only' --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf/nginx.conf
2021-09-11 23:13:45,490: INFO - [#####+..............] > Configuring NGINX web server...
2021-09-11 23:13:45,685: DEBUG - + local delimit=@
2021-09-11 23:13:45,685: DEBUG - + match_string='^#sub_path_only'
2021-09-11 23:13:45,686: DEBUG - + replace_string=
2021-09-11 23:13:45,686: DEBUG - + sed --in-place 's@^#sub_path_only@@g' /var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf/nginx.conf
2021-09-11 23:13:45,692: DEBUG - + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf/nginx.conf --destination=/etc/nginx/conf.d/maindomain.tld.d/jirafeau.conf
2021-09-11 23:13:45,790: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf//var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf/nginx.conf ']'
2021-09-11 23:13:45,791: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf/nginx.conf ']'
2021-09-11 23:13:45,792: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf/nginx.conf
2021-09-11 23:13:45,793: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/maindomain.tld.d/jirafeau.conf
2021-09-11 23:13:45,823: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_maindomain.tld.d_jirafeau.conf
2021-09-11 23:13:45,824: DEBUG - ++ ynh_app_setting_get --app=jirafeau --key=checksum__etc_nginx_conf.d_maindomain.tld.d_jirafeau.conf
2021-09-11 23:13:45,921: DEBUG - ++ [[ checksum__etc_nginx_conf.d_maindomain.tld.d_jirafeau.conf =~ (unprotected|protected|skipped)_ ]]
2021-09-11 23:13:45,922: DEBUG - ++ ynh_app_setting get jirafeau checksum__etc_nginx_conf.d_maindomain.tld.d_jirafeau.conf
2021-09-11 23:13:46,041: DEBUG - + local checksum_value=
2021-09-11 23:13:46,041: DEBUG - + backup_file_checksum=
2021-09-11 23:13:46,042: DEBUG - + '[' -n '' ']'
2021-09-11 23:13:46,043: DEBUG - + touch /etc/nginx/conf.d/maindomain.tld.d/jirafeau.conf
2021-09-11 23:13:46,044: DEBUG - + chown root:root /etc/nginx/conf.d/maindomain.tld.d/jirafeau.conf
2021-09-11 23:13:46,049: DEBUG - + chmod 640 /etc/nginx/conf.d/maindomain.tld.d/jirafeau.conf
2021-09-11 23:13:46,052: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf/nginx.conf /etc/nginx/conf.d/maindomain.tld.d/jirafeau.conf
2021-09-11 23:13:46,057: DEBUG - + _ynh_apply_default_permissions /etc/nginx/conf.d/maindomain.tld.d/jirafeau.conf
2021-09-11 23:13:46,057: DEBUG - + local target=/etc/nginx/conf.d/maindomain.tld.d/jirafeau.conf
2021-09-11 23:13:46,060: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/manifest.json
2021-09-11 23:13:46,061: DEBUG - ++ tr -d '>= '
2021-09-11 23:13:46,074: DEBUG - + local ynh_requirement=4.1.7
2021-09-11 23:13:46,075: DEBUG - + '[' -z 4.1.7 ']'
2021-09-11 23:13:46,075: DEBUG - + '[' 4.1.7 == null ']'
2021-09-11 23:13:46,075: DEBUG - + dpkg --compare-versions 4.1.7 ge 4.2
2021-09-11 23:13:46,081: DEBUG - + ynh_replace_vars --file=/etc/nginx/conf.d/maindomain.tld.d/jirafeau.conf
2021-09-11 23:13:46,112: DEBUG - + test -n /jirafeau
2021-09-11 23:13:46,113: DEBUG - + local path_url_slash_less=/jirafeau
2021-09-11 23:13:46,113: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/jirafeau/ --target_file=/etc/nginx/conf.d/maindomain.tld.d/jirafeau.conf
2021-09-11 23:13:46,313: DEBUG - + local delimit=@
2021-09-11 23:13:46,314: DEBUG - + match_string=__PATH__/
2021-09-11 23:13:46,314: DEBUG - + replace_string=/jirafeau/
2021-09-11 23:13:46,315: DEBUG - + sed --in-place s@__PATH__/@/jirafeau/@g /etc/nginx/conf.d/maindomain.tld.d/jirafeau.conf
2021-09-11 23:13:46,320: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/jirafeau --target_file=/etc/nginx/conf.d/maindomain.tld.d/jirafeau.conf
2021-09-11 23:13:46,525: DEBUG - + local delimit=@
2021-09-11 23:13:46,525: DEBUG - + match_string=__PATH__
2021-09-11 23:13:46,526: DEBUG - + replace_string=/jirafeau
2021-09-11 23:13:46,526: DEBUG - + sed --in-place s@__PATH__@/jirafeau@g /etc/nginx/conf.d/maindomain.tld.d/jirafeau.conf
2021-09-11 23:13:46,532: DEBUG - + test -n jirafeau
2021-09-11 23:13:46,533: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=jirafeau --target_file=/etc/nginx/conf.d/maindomain.tld.d/jirafeau.conf
2021-09-11 23:13:46,736: DEBUG - + local delimit=@
2021-09-11 23:13:46,737: DEBUG - + match_string=__NAME__
2021-09-11 23:13:46,737: DEBUG - + replace_string=jirafeau
2021-09-11 23:13:46,738: DEBUG - + sed --in-place s@__NAME__@jirafeau@g /etc/nginx/conf.d/maindomain.tld.d/jirafeau.conf
2021-09-11 23:13:46,743: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=jirafeau --target_file=/etc/nginx/conf.d/maindomain.tld.d/jirafeau.conf
2021-09-11 23:13:46,948: DEBUG - + local delimit=@
2021-09-11 23:13:46,948: DEBUG - + match_string=__NAMETOCHANGE__
2021-09-11 23:13:46,949: DEBUG - + replace_string=jirafeau
2021-09-11 23:13:46,949: DEBUG - + sed --in-place s@__NAMETOCHANGE__@jirafeau@g /etc/nginx/conf.d/maindomain.tld.d/jirafeau.conf
2021-09-11 23:13:46,954: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=jirafeau --target_file=/etc/nginx/conf.d/maindomain.tld.d/jirafeau.conf
2021-09-11 23:13:47,158: DEBUG - + local delimit=@
2021-09-11 23:13:47,158: DEBUG - + match_string=__USER__
2021-09-11 23:13:47,159: DEBUG - + replace_string=jirafeau
2021-09-11 23:13:47,159: DEBUG - + sed --in-place s@__USER__@jirafeau@g /etc/nginx/conf.d/maindomain.tld.d/jirafeau.conf
2021-09-11 23:13:47,164: DEBUG - + test -n /var/www/jirafeau
2021-09-11 23:13:47,165: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/jirafeau --target_file=/etc/nginx/conf.d/maindomain.tld.d/jirafeau.conf
2021-09-11 23:13:47,367: DEBUG - + local delimit=@
2021-09-11 23:13:47,368: DEBUG - + match_string=__FINALPATH__
2021-09-11 23:13:47,368: DEBUG - + replace_string=/var/www/jirafeau
2021-09-11 23:13:47,369: DEBUG - + sed --in-place s@__FINALPATH__@/var/www/jirafeau@g /etc/nginx/conf.d/maindomain.tld.d/jirafeau.conf
2021-09-11 23:13:47,373: DEBUG - + test -n 7.3
2021-09-11 23:13:47,374: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/maindomain.tld.d/jirafeau.conf
2021-09-11 23:13:47,579: DEBUG - + local delimit=@
2021-09-11 23:13:47,580: DEBUG - + match_string=__PHPVERSION__
2021-09-11 23:13:47,580: DEBUG - + replace_string=7.3
2021-09-11 23:13:47,581: DEBUG - + sed --in-place s@[email protected]@g /etc/nginx/conf.d/maindomain.tld.d/jirafeau.conf
2021-09-11 23:13:47,586: DEBUG - + test -n ''
2021-09-11 23:13:47,587: DEBUG - + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g" ))
2021-09-11 23:13:47,588: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/maindomain.tld.d/jirafeau.conf
2021-09-11 23:13:47,589: DEBUG - ++ sort --unique
2021-09-11 23:13:47,590: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2021-09-11 23:13:47,598: DEBUG - + local delimit=@
2021-09-11 23:13:47,598: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/maindomain.tld.d/jirafeau.conf
2021-09-11 23:13:47,629: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_maindomain.tld.d_jirafeau.conf
2021-09-11 23:13:47,632: DEBUG - ++ md5sum /etc/nginx/conf.d/maindomain.tld.d/jirafeau.conf
2021-09-11 23:13:47,632: DEBUG - ++ cut '--delimiter= ' --fields=1
2021-09-11 23:13:47,638: DEBUG - + ynh_app_setting_set --app=jirafeau --key=checksum__etc_nginx_conf.d_maindomain.tld.d_jirafeau.conf --value=57e6337d30aa21e57ec9cc06561c0bd9
2021-09-11 23:13:47,843: DEBUG - + [[ checksum__etc_nginx_conf.d_maindomain.tld.d_jirafeau.conf =~ (unprotected|protected|skipped)_ ]]
2021-09-11 23:13:47,845: DEBUG - + ynh_app_setting set jirafeau checksum__etc_nginx_conf.d_maindomain.tld.d_jirafeau.conf 57e6337d30aa21e57ec9cc06561c0bd9
2021-09-11 23:13:47,963: DEBUG - + '[' -n '' ']'
2021-09-11 23:13:47,964: DEBUG - + unset backup_file_checksum
2021-09-11 23:13:47,964: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload
2021-09-11 23:13:48,222: DEBUG - + service_name=nginx
2021-09-11 23:13:48,222: DEBUG - + action=reload
2021-09-11 23:13:48,223: DEBUG - + line_match=
2021-09-11 23:13:48,223: DEBUG - + length=20
2021-09-11 23:13:48,224: DEBUG - + log_path=/var/log/nginx/nginx.log
2021-09-11 23:13:48,225: DEBUG - + timeout=300
2021-09-11 23:13:48,225: DEBUG - + '[' reload == stop ']'
2021-09-11 23:13:48,226: DEBUG - + [[ -n '' ]]
2021-09-11 23:13:48,226: DEBUG - + '[' reload == reload ']'
2021-09-11 23:13:48,227: DEBUG - + action=reload-or-restart
2021-09-11 23:13:48,227: DEBUG - + systemctl reload-or-restart nginx
2021-09-11 23:13:48,380: DEBUG - + [[ -n '' ]]
2021-09-11 23:13:48,580: DEBUG - + echo '[######++............] > Configuring system user...'
2021-09-11 23:13:48,582: DEBUG - + ynh_system_user_create --username=jirafeau
2021-09-11 23:13:48,586: INFO - [######++............] > Configuring system user...
2021-09-11 23:13:48,689: DEBUG - + use_shell=0
2021-09-11 23:13:48,689: DEBUG - + home_dir=
2021-09-11 23:13:48,690: DEBUG - + groups=
2021-09-11 23:13:48,690: DEBUG - + ynh_system_user_exists jirafeau
2021-09-11 23:13:48,719: DEBUG - + getent passwd jirafeau
2021-09-11 23:13:48,733: DEBUG - + '[' -n '' ']'
2021-09-11 23:13:48,733: DEBUG - + local user_home_dir=--no-create-home
2021-09-11 23:13:48,734: DEBUG - + '[' 0 -eq 1 ']'
2021-09-11 23:13:48,735: DEBUG - + local 'shell=--shell /usr/sbin/nologin'
2021-09-11 23:13:48,735: DEBUG - + useradd --no-create-home --system --user-group jirafeau --shell /usr/sbin/nologin
2021-09-11 23:13:49,133: INFO - [########+++.........] > Configuring PHP-FPM...
2021-09-11 23:13:49,135: DEBUG - + echo '[########+++.........] > Configuring PHP-FPM...'
2021-09-11 23:13:49,137: DEBUG - + ynh_add_fpm_config
2021-09-11 23:13:49,143: DEBUG - + package=
2021-09-11 23:13:49,143: DEBUG - + use_template=1
2021-09-11 23:13:49,144: DEBUG - + usage=
2021-09-11 23:13:49,144: DEBUG - + footprint=
2021-09-11 23:13:49,145: DEBUG - + '[' -n '' ']'
2021-09-11 23:13:49,146: DEBUG - + '[' -n '' ']'
2021-09-11 23:13:49,146: DEBUG - + dedicated_service=0
2021-09-11 23:13:49,146: DEBUG - + phpversion=7.3
2021-09-11 23:13:49,147: DEBUG - ++ ynh_app_setting_get --app=jirafeau --key=phpversion
2021-09-11 23:13:49,230: DEBUG - ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2021-09-11 23:13:49,231: DEBUG - ++ ynh_app_setting get jirafeau phpversion
2021-09-11 23:13:49,360: DEBUG - + local old_phpversion=
2021-09-11 23:13:49,361: DEBUG - + '[' -n '' ']'
2021-09-11 23:13:49,361: DEBUG - + '[' 7.3 '!=' 7.3 ']'
2021-09-11 23:13:49,362: DEBUG - + '[' -n '' ']'
2021-09-11 23:13:49,362: DEBUG - + '[' 0 -eq 1 ']'
2021-09-11 23:13:49,363: DEBUG - + local fpm_service=php7.3-fpm
2021-09-11 23:13:49,363: DEBUG - + local fpm_config_dir=/etc/php/7.3/fpm
2021-09-11 23:13:49,364: DEBUG - + mkdir --parents /etc/php/7.3/fpm/pool.d
2021-09-11 23:13:49,364: DEBUG - + ynh_app_setting_set --app=jirafeau --key=fpm_config_dir --value=/etc/php/7.3/fpm
2021-09-11 23:13:49,552: DEBUG - + [[ fpm_config_dir =~ (unprotected|protected|skipped)_ ]]
2021-09-11 23:13:49,552: DEBUG - + ynh_app_setting set jirafeau fpm_config_dir /etc/php/7.3/fpm
2021-09-11 23:13:49,672: DEBUG - + ynh_app_setting_set --app=jirafeau --key=fpm_service --value=php7.3-fpm
2021-09-11 23:13:49,864: DEBUG - + [[ fpm_service =~ (unprotected|protected|skipped)_ ]]
2021-09-11 23:13:49,865: DEBUG - + ynh_app_setting set jirafeau fpm_service php7.3-fpm
2021-09-11 23:13:49,988: DEBUG - + ynh_app_setting_set --app=jirafeau --key=fpm_dedicated_service --value=0
2021-09-11 23:13:50,175: DEBUG - + [[ fpm_dedicated_service =~ (unprotected|protected|skipped)_ ]]
2021-09-11 23:13:50,176: DEBUG - + ynh_app_setting set jirafeau fpm_dedicated_service 0
2021-09-11 23:13:50,297: DEBUG - + ynh_app_setting_set --app=jirafeau --key=phpversion --value=7.3
2021-09-11 23:13:50,489: DEBUG - + [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2021-09-11 23:13:50,490: DEBUG - + ynh_app_setting set jirafeau phpversion 7.3
2021-09-11 23:13:50,612: DEBUG - + '[' 0 -eq 1 ']'
2021-09-11 23:13:50,612: DEBUG - + '[' 1 -eq 1 ']'
2021-09-11 23:13:50,613: DEBUG - + local phpfpm_path=/var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf/php-fpm.conf
2021-09-11 23:13:50,613: DEBUG - + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf/php-fpm.conf ']'
2021-09-11 23:13:50,613: DEBUG - + local finalphpconf=/etc/php/7.3/fpm/pool.d/jirafeau.conf
2021-09-11 23:13:50,614: DEBUG - + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf/php-fpm.conf --destination=/etc/php/7.3/fpm/pool.d/jirafeau.conf
2021-09-11 23:13:50,706: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf//var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf/php-fpm.conf ']'
2021-09-11 23:13:50,707: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf/php-fpm.conf ']'
2021-09-11 23:13:50,708: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf/php-fpm.conf
2021-09-11 23:13:50,709: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/php/7.3/fpm/pool.d/jirafeau.conf
2021-09-11 23:13:50,737: DEBUG - + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_jirafeau.conf
2021-09-11 23:13:50,738: DEBUG - ++ ynh_app_setting_get --app=jirafeau --key=checksum__etc_php_7.3_fpm_pool.d_jirafeau.conf
2021-09-11 23:13:50,836: DEBUG - ++ [[ checksum__etc_php_7.3_fpm_pool.d_jirafeau.conf =~ (unprotected|protected|skipped)_ ]]
2021-09-11 23:13:50,837: DEBUG - ++ ynh_app_setting get jirafeau checksum__etc_php_7.3_fpm_pool.d_jirafeau.conf
2021-09-11 23:13:50,957: DEBUG - + local checksum_value=
2021-09-11 23:13:50,958: DEBUG - + backup_file_checksum=
2021-09-11 23:13:50,958: DEBUG - + '[' -n '' ']'
2021-09-11 23:13:50,959: DEBUG - + touch /etc/php/7.3/fpm/pool.d/jirafeau.conf
2021-09-11 23:13:50,960: DEBUG - + chown root:root /etc/php/7.3/fpm/pool.d/jirafeau.conf
2021-09-11 23:13:50,975: DEBUG - + chmod 640 /etc/php/7.3/fpm/pool.d/jirafeau.conf
2021-09-11 23:13:50,980: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf/php-fpm.conf /etc/php/7.3/fpm/pool.d/jirafeau.conf
2021-09-11 23:13:50,985: DEBUG - + _ynh_apply_default_permissions /etc/php/7.3/fpm/pool.d/jirafeau.conf
2021-09-11 23:13:50,986: DEBUG - + local target=/etc/php/7.3/fpm/pool.d/jirafeau.conf
2021-09-11 23:13:50,987: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/manifest.json
2021-09-11 23:13:50,988: DEBUG - ++ tr -d '>= '
2021-09-11 23:13:50,999: DEBUG - + local ynh_requirement=4.1.7
2021-09-11 23:13:51,000: DEBUG - + '[' -z 4.1.7 ']'
2021-09-11 23:13:51,000: DEBUG - + '[' 4.1.7 == null ']'
2021-09-11 23:13:51,001: DEBUG - + dpkg --compare-versions 4.1.7 ge 4.2
2021-09-11 23:13:51,004: DEBUG - + ynh_replace_vars --file=/etc/php/7.3/fpm/pool.d/jirafeau.conf
2021-09-11 23:13:51,035: DEBUG - + test -n /jirafeau
2021-09-11 23:13:51,035: DEBUG - + local path_url_slash_less=/jirafeau
2021-09-11 23:13:51,036: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/jirafeau/ --target_file=/etc/php/7.3/fpm/pool.d/jirafeau.conf
2021-09-11 23:13:51,240: DEBUG - + local delimit=@
2021-09-11 23:13:51,241: DEBUG - + match_string=__PATH__/
2021-09-11 23:13:51,241: DEBUG - + replace_string=/jirafeau/
2021-09-11 23:13:51,242: DEBUG - + sed --in-place s@__PATH__/@/jirafeau/@g /etc/php/7.3/fpm/pool.d/jirafeau.conf
2021-09-11 23:13:51,247: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/jirafeau --target_file=/etc/php/7.3/fpm/pool.d/jirafeau.conf
2021-09-11 23:13:51,450: DEBUG - + local delimit=@
2021-09-11 23:13:51,451: DEBUG - + match_string=__PATH__
2021-09-11 23:13:51,451: DEBUG - + replace_string=/jirafeau
2021-09-11 23:13:51,452: DEBUG - + sed --in-place s@__PATH__@/jirafeau@g /etc/php/7.3/fpm/pool.d/jirafeau.conf
2021-09-11 23:13:51,457: DEBUG - + test -n jirafeau
2021-09-11 23:13:51,458: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=jirafeau --target_file=/etc/php/7.3/fpm/pool.d/jirafeau.conf
2021-09-11 23:13:51,661: DEBUG - + local delimit=@
2021-09-11 23:13:51,661: DEBUG - + match_string=__NAME__
2021-09-11 23:13:51,662: DEBUG - + replace_string=jirafeau
2021-09-11 23:13:51,662: DEBUG - + sed --in-place s@__NAME__@jirafeau@g /etc/php/7.3/fpm/pool.d/jirafeau.conf
2021-09-11 23:13:51,668: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=jirafeau --target_file=/etc/php/7.3/fpm/pool.d/jirafeau.conf
2021-09-11 23:13:51,871: DEBUG - + local delimit=@
2021-09-11 23:13:51,872: DEBUG - + match_string=__NAMETOCHANGE__
2021-09-11 23:13:51,872: DEBUG - + replace_string=jirafeau
2021-09-11 23:13:51,873: DEBUG - + sed --in-place s@__NAMETOCHANGE__@jirafeau@g /etc/php/7.3/fpm/pool.d/jirafeau.conf
2021-09-11 23:13:51,878: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=jirafeau --target_file=/etc/php/7.3/fpm/pool.d/jirafeau.conf
2021-09-11 23:13:52,080: DEBUG - + local delimit=@
2021-09-11 23:13:52,081: DEBUG - + match_string=__USER__
2021-09-11 23:13:52,082: DEBUG - + replace_string=jirafeau
2021-09-11 23:13:52,082: DEBUG - + sed --in-place s@__USER__@jirafeau@g /etc/php/7.3/fpm/pool.d/jirafeau.conf
2021-09-11 23:13:52,088: DEBUG - + test -n /var/www/jirafeau
2021-09-11 23:13:52,089: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/jirafeau --target_file=/etc/php/7.3/fpm/pool.d/jirafeau.conf
2021-09-11 23:13:52,286: DEBUG - + local delimit=@
2021-09-11 23:13:52,287: DEBUG - + match_string=__FINALPATH__
2021-09-11 23:13:52,287: DEBUG - + replace_string=/var/www/jirafeau
2021-09-11 23:13:52,288: DEBUG - + sed --in-place s@__FINALPATH__@/var/www/jirafeau@g /etc/php/7.3/fpm/pool.d/jirafeau.conf
2021-09-11 23:13:52,294: DEBUG - + test -n 7.3
2021-09-11 23:13:52,294: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/php/7.3/fpm/pool.d/jirafeau.conf
2021-09-11 23:13:52,496: DEBUG - + local delimit=@
2021-09-11 23:13:52,497: DEBUG - + match_string=__PHPVERSION__
2021-09-11 23:13:52,497: DEBUG - + replace_string=7.3
2021-09-11 23:13:52,498: DEBUG - + sed --in-place s@[email protected]@g /etc/php/7.3/fpm/pool.d/jirafeau.conf
2021-09-11 23:13:52,504: DEBUG - + test -n ''
2021-09-11 23:13:52,504: DEBUG - + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g" ))
2021-09-11 23:13:52,505: DEBUG - ++ sort --unique
2021-09-11 23:13:52,506: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/php/7.3/fpm/pool.d/jirafeau.conf
2021-09-11 23:13:52,507: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2021-09-11 23:13:52,514: DEBUG - + local delimit=@
2021-09-11 23:13:52,514: DEBUG - + ynh_store_file_checksum --file=/etc/php/7.3/fpm/pool.d/jirafeau.conf
2021-09-11 23:13:52,543: DEBUG - + local checksum_setting_name=checksum__etc_php_7.3_fpm_pool.d_jirafeau.conf
2021-09-11 23:13:52,546: DEBUG - ++ md5sum /etc/php/7.3/fpm/pool.d/jirafeau.conf
2021-09-11 23:13:52,547: DEBUG - ++ cut '--delimiter= ' --fields=1
2021-09-11 23:13:52,552: DEBUG - + ynh_app_setting_set --app=jirafeau --key=checksum__etc_php_7.3_fpm_pool.d_jirafeau.conf --value=3db9af1b933e937637c7f3a4ed5a318b
2021-09-11 23:13:52,758: DEBUG - + [[ checksum__etc_php_7.3_fpm_pool.d_jirafeau.conf =~ (unprotected|protected|skipped)_ ]]
2021-09-11 23:13:52,759: DEBUG - + ynh_app_setting set jirafeau checksum__etc_php_7.3_fpm_pool.d_jirafeau.conf 3db9af1b933e937637c7f3a4ed5a318b
2021-09-11 23:13:52,882: DEBUG - + '[' -n '' ']'
2021-09-11 23:13:52,882: DEBUG - + unset backup_file_checksum
2021-09-11 23:13:52,883: DEBUG - + '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf/php-fpm.ini ']'
2021-09-11 23:13:52,883: DEBUG - + '[' 0 -eq 1 ']'
2021-09-11 23:13:52,884: DEBUG - + php-fpm7.3 --test
2021-09-11 23:13:53,024: DEBUG - + ynh_systemd_action --service_name=php7.3-fpm --action=reload
2021-09-11 23:13:53,284: DEBUG - + service_name=php7.3-fpm
2021-09-11 23:13:53,284: DEBUG - + action=reload
2021-09-11 23:13:53,285: DEBUG - + line_match=
2021-09-11 23:13:53,285: DEBUG - + length=20
2021-09-11 23:13:53,286: DEBUG - + log_path=/var/log/php7.3-fpm/php7.3-fpm.log
2021-09-11 23:13:53,286: DEBUG - + timeout=300
2021-09-11 23:13:53,287: DEBUG - + '[' reload == stop ']'
2021-09-11 23:13:53,287: DEBUG - + [[ -n '' ]]
2021-09-11 23:13:53,288: DEBUG - + '[' reload == reload ']'
2021-09-11 23:13:53,288: DEBUG - + action=reload-or-restart
2021-09-11 23:13:53,289: DEBUG - + systemctl reload-or-restart php7.3-fpm
2021-09-11 23:13:53,312: DEBUG - + [[ -n '' ]]
2021-09-11 23:13:53,315: DEBUG - ++ ynh_app_setting_get --app=jirafeau --key=phpversion
2021-09-11 23:13:53,406: DEBUG - ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
2021-09-11 23:13:53,407: DEBUG - ++ ynh_app_setting get jirafeau phpversion
2021-09-11 23:13:53,529: DEBUG - + phpversion=7.3
2021-09-11 23:13:53,530: DEBUG - + jirafeauconfigfile=/var/www/jirafeau/lib/config.local.php
2021-09-11 23:13:53,530: DEBUG - + cp ../conf/config.local.php /var/www/jirafeau/lib/config.local.php
2021-09-11 23:13:53,534: DEBUG - + ynh_print_OFF
2021-09-11 23:13:53,534: DEBUG - + exec
2021-09-11 23:13:54,266: DEBUG - + echo ynh_print_ON
2021-09-11 23:13:54,483: DEBUG - + echo '[###########++.......] > Configuring Jirafeau...'
2021-09-11 23:13:54,484: INFO - [###########++.......] > Configuring Jirafeau...
2021-09-11 23:13:54,485: DEBUG - + var_root=/home/yunohost.app/jirafeau
2021-09-11 23:13:54,486: DEBUG - + ynh_replace_string --match_string=__DOMAIN__ --replace_string=maindomain.tld --target_file=/var/www/jirafeau/lib/config.local.php
2021-09-11 23:13:54,692: DEBUG - + local delimit=@
2021-09-11 23:13:54,692: DEBUG - + match_string=__DOMAIN__
2021-09-11 23:13:54,693: DEBUG - + replace_string=maindomain.tld
2021-09-11 23:13:54,693: DEBUG - + sed --in-place s@[email protected]@g /var/www/jirafeau/lib/config.local.php
2021-09-11 23:13:54,699: DEBUG - + '[' /jirafeau = / ']'
2021-09-11 23:13:54,700: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/jirafeau --target_file=/var/www/jirafeau/lib/config.local.php
2021-09-11 23:13:54,907: DEBUG - + local delimit=@
2021-09-11 23:13:54,908: DEBUG - + match_string=__PATH__
2021-09-11 23:13:54,908: DEBUG - + replace_string=/jirafeau
2021-09-11 23:13:54,909: DEBUG - + sed --in-place s@__PATH__@/jirafeau@g /var/www/jirafeau/lib/config.local.php
2021-09-11 23:13:54,914: DEBUG - + ynh_replace_string --match_string=__VAR_ROOT__ --replace_string=/home/yunohost.app/jirafeau --target_file=/var/www/jirafeau/lib/config.local.php
2021-09-11 23:13:55,124: DEBUG - + local delimit=@
2021-09-11 23:13:55,125: DEBUG - + match_string=__VAR_ROOT__
2021-09-11 23:13:55,126: DEBUG - + replace_string=/home/yunohost.app/jirafeau
2021-09-11 23:13:55,126: DEBUG - + sed --in-place s@__VAR_ROOT__@/home/yunohost.app/jirafeau@g /var/www/jirafeau/lib/config.local.php
2021-09-11 23:13:55,133: DEBUG - + ynh_replace_string --match_string=__ADMIN_USER__ --replace_string=XXX --target_file=/var/www/jirafeau/lib/config.local.php
2021-09-11 23:13:55,345: DEBUG - + local delimit=@
2021-09-11 23:13:55,346: DEBUG - + match_string=__ADMIN_USER__
2021-09-11 23:13:55,346: DEBUG - + replace_string=XXX
2021-09-11 23:13:55,347: DEBUG - + sed --in-place s@__ADMIN_USER__@XXX@g /var/www/jirafeau/lib/config.local.php
2021-09-11 23:13:55,352: DEBUG - + ynh_store_file_checksum --file=/var/www/jirafeau/lib/config.local.php
2021-09-11 23:13:55,385: DEBUG - + local checksum_setting_name=checksum__var_www_jirafeau_lib_config.local.php
2021-09-11 23:13:55,387: DEBUG - ++ md5sum /var/www/jirafeau/lib/config.local.php
2021-09-11 23:13:55,388: DEBUG - ++ cut '--delimiter= ' --fields=1
2021-09-11 23:13:55,394: DEBUG - + ynh_app_setting_set --app=jirafeau --key=checksum__var_www_jirafeau_lib_config.local.php --value=a747a43b104a9bba8cba9f7ce98297c6
2021-09-11 23:13:55,596: DEBUG - + [[ checksum__var_www_jirafeau_lib_config.local.php =~ (unprotected|protected|skipped)_ ]]
2021-09-11 23:13:55,597: DEBUG - + ynh_app_setting set jirafeau checksum__var_www_jirafeau_lib_config.local.php a747a43b104a9bba8cba9f7ce98297c6
2021-09-11 23:13:55,721: DEBUG - + '[' -n '' ']'
2021-09-11 23:13:55,722: DEBUG - + unset backup_file_checksum
2021-09-11 23:13:55,723: DEBUG - + ynh_secure_remove --file=/var/www/jirafeau/install.php
2021-09-11 23:13:55,751: DEBUG - + local 'forbidden_path=     /var/www     /home/yunohost.app'
2021-09-11 23:13:55,752: DEBUG - + '[' 1 -ge 2 ']'
2021-09-11 23:13:55,753: DEBUG - + [[ -z /var/www/jirafeau/install.php ]]
2021-09-11 23:13:55,753: DEBUG - + [[      /var/www     /home/yunohost.app =~ /var/www/jirafeau/install\.php ]]
2021-09-11 23:13:55,754: DEBUG - + [[ /var/www/jirafeau/install.php =~ ^/[[:alnum:]]+$ ]]
2021-09-11 23:13:55,754: DEBUG - + [[ p = \/ ]]
2021-09-11 23:13:55,754: DEBUG - + '[' -e /var/www/jirafeau/install.php ']'
2021-09-11 23:13:55,755: DEBUG - + rm --recursive /var/www/jirafeau/install.php
2021-09-11 23:13:55,977: DEBUG - + echo '[#############++.....] > Configuring the cron file...'
2021-09-11 23:13:55,978: INFO - [#############++.....] > Configuring the cron file...
2021-09-11 23:13:55,979: DEBUG - + ynh_add_config --template=../conf/cron --destination=/etc/cron.d/jirafeau
2021-09-11 23:13:56,076: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf/../conf/cron ']'
2021-09-11 23:13:56,077: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf/../conf/cron
2021-09-11 23:13:56,077: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/cron.d/jirafeau
2021-09-11 23:13:56,109: DEBUG - + local checksum_setting_name=checksum__etc_cron.d_jirafeau
2021-09-11 23:13:56,110: DEBUG - ++ ynh_app_setting_get --app=jirafeau --key=checksum__etc_cron.d_jirafeau
2021-09-11 23:13:56,210: DEBUG - ++ [[ checksum__etc_cron.d_jirafeau =~ (unprotected|protected|skipped)_ ]]
2021-09-11 23:13:56,211: DEBUG - ++ ynh_app_setting get jirafeau checksum__etc_cron.d_jirafeau
2021-09-11 23:13:56,332: DEBUG - + local checksum_value=
2021-09-11 23:13:56,332: DEBUG - + backup_file_checksum=
2021-09-11 23:13:56,333: DEBUG - + '[' -n '' ']'
2021-09-11 23:13:56,333: DEBUG - + touch /etc/cron.d/jirafeau
2021-09-11 23:13:56,336: DEBUG - + chown root:root /etc/cron.d/jirafeau
2021-09-11 23:13:56,343: DEBUG - + chmod 640 /etc/cron.d/jirafeau
2021-09-11 23:13:56,347: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/conf/../conf/cron /etc/cron.d/jirafeau
2021-09-11 23:13:56,353: DEBUG - + _ynh_apply_default_permissions /etc/cron.d/jirafeau
2021-09-11 23:13:56,354: DEBUG - + local target=/etc/cron.d/jirafeau
2021-09-11 23:13:56,355: DEBUG - ++ tr -d '>= '
2021-09-11 23:13:56,356: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_wqgg_g9h/manifest.json
2021-09-11 23:13:56,368: DEBUG - + local ynh_requirement=4.1.7
2021-09-11 23:13:56,369: DEBUG - + '[' -z 4.1.7 ']'
2021-09-11 23:13:56,369: DEBUG - + '[' 4.1.7 == null ']'
2021-09-11 23:13:56,369: DEBUG - + dpkg --compare-versions 4.1.7 ge 4.2
2021-09-11 23:13:56,373: DEBUG - + ynh_replace_vars --file=/etc/cron.d/jirafeau
2021-09-11 23:13:56,404: DEBUG - + test -n /jirafeau
2021-09-11 23:13:56,404: DEBUG - + local path_url_slash_less=/jirafeau
2021-09-11 23:13:56,405: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/jirafeau/ --target_file=/etc/cron.d/jirafeau
2021-09-11 23:13:56,610: DEBUG - + local delimit=@
2021-09-11 23:13:56,611: DEBUG - + match_string=__PATH__/
2021-09-11 23:13:56,611: DEBUG - + replace_string=/jirafeau/
2021-09-11 23:13:56,612: DEBUG - + sed --in-place s@__PATH__/@/jirafeau/@g /etc/cron.d/jirafeau
2021-09-11 23:13:56,617: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/jirafeau --target_file=/etc/cron.d/jirafeau
2021-09-11 23:13:56,828: DEBUG - + local delimit=@
2021-09-11 23:13:56,829: DEBUG - + match_string=__PATH__
2021-09-11 23:13:56,829: DEBUG - + replace_string=/jirafeau
2021-09-11 23:13:56,830: DEBUG - + sed --in-place s@__PATH__@/jirafeau@g /etc/cron.d/jirafeau
2021-09-11 23:13:56,835: DEBUG - + test -n jirafeau
2021-09-11 23:13:56,835: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=jirafeau --target_file=/etc/cron.d/jirafeau
2021-09-11 23:13:57,041: DEBUG - + local delimit=@
2021-09-11 23:13:57,042: DEBUG - + match_string=__NAME__
2021-09-11 23:13:57,042: DEBUG - + replace_string=jirafeau
2021-09-11 23:13:57,043: DEBUG - + sed --in-place s@__NAME__@jirafeau@g /etc/cron.d/jirafeau
2021-09-11 23:13:57,047: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=jirafeau --target_file=/etc/cron.d/jirafeau
2021-09-11 23:13:57,252: DEBUG - + local delimit=@
2021-09-11 23:13:57,253: DEBUG - + match_string=__NAMETOCHANGE__
2021-09-11 23:13:57,253: DEBUG - + replace_string=jirafeau
2021-09-11 23:13:57,254: DEBUG - + sed --in-place s@__NAMETOCHANGE__@jirafeau@g /etc/cron.d/jirafeau
2021-09-11 23:13:57,259: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=jirafeau --target_file=/etc/cron.d/jirafeau
2021-09-11 23:13:57,467: DEBUG - + local delimit=@
2021-09-11 23:13:57,468: DEBUG - + match_string=__USER__
2021-09-11 23:13:57,468: DEBUG - + replace_string=jirafeau
2021-09-11 23:13:57,469: DEBUG - + sed --in-place s@__USER__@jirafeau@g /etc/cron.d/jirafeau
2021-09-11 23:13:57,473: DEBUG - + test -n /var/www/jirafeau
2021-09-11 23:13:57,474: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/jirafeau --target_file=/etc/cron.d/jirafeau
2021-09-11 23:13:57,678: DEBUG - + local delimit=@
2021-09-11 23:13:57,679: DEBUG - + match_string=__FINALPATH__
2021-09-11 23:13:57,680: DEBUG - + replace_string=/var/www/jirafeau
2021-09-11 23:13:57,680: DEBUG - + sed --in-place s@__FINALPATH__@/var/www/jirafeau@g /etc/cron.d/jirafeau
2021-09-11 23:13:57,686: DEBUG - + test -n 7.3
2021-09-11 23:13:57,687: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/cron.d/jirafeau
2021-09-11 23:13:57,897: DEBUG - + local delimit=@
2021-09-11 23:13:57,898: DEBUG - + match_string=__PHPVERSION__
2021-09-11 23:13:57,898: DEBUG - + replace_string=7.3
2021-09-11 23:13:57,899: DEBUG - + sed --in-place s@[email protected]@g /etc/cron.d/jirafeau
2021-09-11 23:13:57,904: DEBUG - + test -n ''
2021-09-11 23:13:57,905: DEBUG - + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g" ))
2021-09-11 23:13:57,906: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/cron.d/jirafeau
2021-09-11 23:13:57,907: DEBUG - ++ sort --unique
2021-09-11 23:13:57,908: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2021-09-11 23:13:57,916: DEBUG - + local delimit=@
2021-09-11 23:13:57,917: DEBUG - + for one_var in "${uniques_vars[@]}"
2021-09-11 23:13:57,917: DEBUG - + [[ -v app ]]
2021-09-11 23:13:57,918: DEBUG - + match_string=__APP__
2021-09-11 23:13:57,918: DEBUG - + match_string=__APP__
2021-09-11 23:13:57,919: DEBUG - + replace_string=jirafeau
2021-09-11 23:13:57,919: DEBUG - + replace_string=jirafeau
2021-09-11 23:13:57,920: DEBUG - + replace_string=jirafeau
2021-09-11 23:13:57,920: DEBUG - + sed --in-place s@__APP__@jirafeau@g /etc/cron.d/jirafeau
2021-09-11 23:13:57,921: DEBUG - + ynh_store_file_checksum --file=/etc/cron.d/jirafeau
2021-09-11 23:13:57,955: DEBUG - + local checksum_setting_name=checksum__etc_cron.d_jirafeau
2021-09-11 23:13:57,958: DEBUG - ++ md5sum /etc/cron.d/jirafeau
2021-09-11 23:13:57,958: DEBUG - ++ cut '--delimiter= ' --fields=1
2021-09-11 23:13:57,964: DEBUG - + ynh_app_setting_set --app=jirafeau --key=checksum__etc_cron.d_jirafeau --value=43b8121d7ca35f4c9bb94f93c2de630b
2021-09-11 23:13:58,171: DEBUG - + [[ checksum__etc_cron.d_jirafeau =~ (unprotected|protected|skipped)_ ]]
2021-09-11 23:13:58,172: DEBUG - + ynh_app_setting set jirafeau checksum__etc_cron.d_jirafeau 43b8121d7ca35f4c9bb94f93c2de630b
2021-09-11 23:13:58,295: DEBUG - + '[' -n '' ']'
2021-09-11 23:13:58,296: DEBUG - + unset backup_file_checksum
2021-09-11 23:13:58,296: DEBUG - + chown -R root: /var/www/jirafeau
2021-09-11 23:13:58,308: DEBUG - + mkdir -p /home/yunohost.app/jirafeau/files /home/yunohost.app/jirafeau/links /home/yunohost.app/jirafeau/async /home/yunohost.app/jirafeau/block
2021-09-11 23:13:58,318: DEBUG - + chown -R jirafeau:root /home/yunohost.app/jirafeau
2021-09-11 23:13:58,323: DEBUG - + chmod -R 700 /home/yunohost.app/jirafeau
2021-09-11 23:13:58,558: DEBUG - + echo '[###############++...] > Configuring permissions...'
2021-09-11 23:13:58,559: INFO - [###############++...] > Configuring permissions...
2021-09-11 23:13:58,561: DEBUG - + ynh_permission_update --permission=main --add=visitors
2021-09-11 23:13:58,836: DEBUG - + add=visitors
2021-09-11 23:13:58,837: DEBUG - + remove=
2021-09-11 23:13:58,837: DEBUG - + label=
2021-09-11 23:13:58,838: DEBUG - + show_tile=
2021-09-11 23:13:58,838: DEBUG - + protected=
2021-09-11 23:13:58,839: DEBUG - + [[ -n visitors ]]
2021-09-11 23:13:58,839: DEBUG - + add=',add=['\''visitors'\'']'
2021-09-11 23:13:58,840: DEBUG - + [[ -n '' ]]
2021-09-11 23:13:58,840: DEBUG - + [[ -n '' ]]
2021-09-11 23:13:58,841: DEBUG - + [[ -n '' ]]
2021-09-11 23:13:58,841: DEBUG - + [[ -n '' ]]
2021-09-11 23:13:58,842: DEBUG - + yunohost tools shell -c 'from yunohost.permission import user_permission_update; user_permission_update('\''jirafeau.main'\'' ,add=['\''visitors'\'']     , force=True)'
2021-09-11 23:14:00,576: DEBUG - + '[' 1 -eq 0 ']'
2021-09-11 23:14:00,799: DEBUG - + echo '[#################+..] > Reloading NGINX web server...'
2021-09-11 23:14:00,800: INFO - [#################+..] > Reloading NGINX web server...
2021-09-11 23:14:00,802: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload
2021-09-11 23:14:01,070: DEBUG - + service_name=nginx
2021-09-11 23:14:01,070: DEBUG - + action=reload
2021-09-11 23:14:01,071: DEBUG - + line_match=
2021-09-11 23:14:01,072: DEBUG - + length=20
2021-09-11 23:14:01,072: DEBUG - + log_path=/var/log/nginx/nginx.log
2021-09-11 23:14:01,073: DEBUG - + timeout=300
2021-09-11 23:14:01,073: DEBUG - + '[' reload == stop ']'
2021-09-11 23:14:01,074: DEBUG - + [[ -n '' ]]
2021-09-11 23:14:01,074: DEBUG - + '[' reload == reload ']'
2021-09-11 23:14:01,075: DEBUG - + action=reload-or-restart
2021-09-11 23:14:01,075: DEBUG - + systemctl reload-or-restart nginx
2021-09-11 23:14:01,229: DEBUG - + [[ -n '' ]]
2021-09-11 23:14:01,422: DEBUG - + echo '[####################] > Installation of Jirafeau completed'
2021-09-11 23:14:01,424: INFO - [####################] > Installation of Jirafeau completed
2021-09-11 23:14:01,425: DEBUG - + ynh_exit_properly
2021-09-11 23:14:01,425: DEBUG - + local exit_code=0
2021-09-11 23:14:01,426: DEBUG - + rm -rf /var/cache/yunohost/download/
2021-09-11 23:14:01,427: DEBUG - + '[' 0 -eq 0 ']'
2021-09-11 23:14:01,427: DEBUG - + exit 0
2021-09-11 23:14:02,430: DEBUG - Checking that required services are up and running...
2021-09-11 23:14:04,283: SUCCESS - Installation terminée

White page when using Password identification

ynh_replace_string "YNH_UPLOAD_PASSWORD" "\'$upload_password\'" "$jirafeauconfigfile"

Hello

I've had a white page and nothing working for jirafeau when installing jirafeau from yunohost when setting a password for public access :
If I set mypassword in the yunohost field it writes :

$cfg['upload_password'] = array(\'mypassword\');

in /var/www/jirafeau/lib/config.local.php and the backslashes make jirafeau unable to read the config file

By removing the backslashes in the config file

$cfg['upload_password'] = array('mypassword');

Everything work fine. Can you correct the installation file please ?

Thanks for your work !

Erreur quand j'essaie d'installer Jirafeau

Salut,

Pouvez-vous m'aidez ? J'ai un problème quand j'essaie d'installer Jirafeau sur mon instance Yunohost.

Voici mes logs :

moulinette.actionsmap process - processing action [30987.135]: yunohost.app.install
yunohost.app _fetch_app_from_git - [30987.135] Téléchargement...
yunohost.app _extract_app_from_file - [30987.135] Extraction...
yunohost.app _extract_app_from_file - [30987.135] Terminé
yunohost.app _check_manifest_requirements - [30987.135] Vérification des paquets requis...
yunohost.hook hook_exec - [30987.135] Exécution du script « /var/cache/yunohost/from_file/jirafeau_ynh-f3cacf050c58804e5071dae314c38f3950ebf9d3/scripts/install »...
yunohost.hook <lambda> - [30987.135] + set -e
yunohost.hook <lambda> - [30987.135] + app=jirafeau
yunohost.hook <lambda> - [30987.135] + domain=yourDomain.net
yunohost.hook <lambda> - [30987.135] + path=/share
yunohost.hook <lambda> - [30987.135] + admin_user=blutux
yunohost.hook <lambda> - [30987.135] + upload_password='YourUploadPass'
yunohost.hook <lambda> - [30987.135] + is_public=Yes
yunohost.hook <lambda> - [30987.135] + sudo yunohost app checkurl yourDomain.net/share -a jirafeau
WARNING  yunohost.hook <lambda> - [30987.135] 'yunohost app checkurl' is deprecated and will be removed in the future
yunohost.hook <lambda> - [30987.135] + [[ ! 0 -eq 0 ]]
yunohost.hook <lambda> - [30987.135] + path=/share
yunohost.hook <lambda> - [30987.135] + sudo yunohost user list --json
yunohost.hook <lambda> - [30987.135] + grep -q '"username": "blutux"'
yunohost.hook <lambda> - [30987.135] + [[ ! 0 -eq 0 ]]
yunohost.hook <lambda> - [30987.135] + sudo yunohost app setting jirafeau admin_user -v blutux
yunohost.hook <lambda> - [30987.135] + sudo yunohost app setting jirafeau is_public -v Yes
yunohost.hook <lambda> - [30987.135] + [[ -z YourUploadPass ]]
yunohost.hook <lambda> - [30987.135] + sed -i 's@YNH_UPLOAD_PASSWORD@'\''YourUploadPass'\''@g' ../conf/config.local.php
WARNING  yunohost.hook <lambda> - [30987.135] sed: -e expression #1, char 31: unknown option to `s'
yunohost.hook hook_exec - [30987.135] Exécution du script « /var/cache/yunohost/from_file/jirafeau_ynh-f3cacf050c58804e5071dae314c38f3950ebf9d3/scripts/remove »...
yunohost.hook <lambda> - [30987.135] + set -u
yunohost.hook <lambda> - [30987.135] + app=jirafeau
yunohost.hook <lambda> - [30987.135] ++ sudo yunohost app setting jirafeau domain
yunohost.hook <lambda> - [30987.135] + domain=yourDomain.net
yunohost.hook <lambda> - [30987.135] + sudo rm -rf /home/yunohost.app/jirafeau
yunohost.hook <lambda> - [30987.135] + sudo rm -rf /var/www/jirafeau
yunohost.hook <lambda> - [30987.135] + sudo rm -f /etc/nginx/conf.d/maskme.net.d/jirafeau.conf
yunohost.hook <lambda> - [30987.135] + sudo rm -f /etc/php5/fpm/pool.d/jirafeau.conf
yunohost.hook <lambda> - [30987.135] + sudo service php5-fpm restart
yunohost.hook <lambda> - [30987.135] + sudo service nginx reload
SUCCESS  yunohost.app success - [30987.135] La configuration de SSOwat a été générée
geventwebsocket.handler log_request - 127.0.0.1 - - [2017-08-07 20:29:38] "POST /apps HTTP/1.1" 500 159 38.732597

Versions:

yunohost
2.6.5
yunohost-admin
2.6.2
moulinette
2.6.1
ssowat
2.6.8

Public download, private upload

Hi,
I want to use jirafeau to share file with other poeples who doesn't have an account on YunoHost and in the same time i want the upload page are accessible only to younohost users with sso and without a password on upload interface.

It's seems it used to be the normal comportement of jirafeau when you pick "public site" during installation.

But now when you pick up "public" the upload and download page are public, but never the admin page. And when you Don't pickup "public" you must login in YunHost for acces to download and upload page.

I Don't have programming skills so someone could help me please ?

When installaing Jirafeau installer said it use the old permission system maybe the problem come from here.

I found this topic, if could help : #15

Thank's for your time

Don't backup data during upgrade process

When backing up the app during the upgrade process, the data directory is backed-up as well, which can be veeery long for a file-sharing application.
Using same method as Nextcloud (here, here and here) would be recommended.

Upload password leaked in (shared on paste.yunohost.org) debug logs

Hi,

I tried to upgrade my app and met #58 (I guess). I wanted to share the logs with yunohost log display 20190523-080114-app_upgrade-jirafeau --share and I saw that my upload password was leaking in the past!

See: 2019-05-23 10:01:23,859: DEBUG - + upload_password='MYPASSWORD' and at several other places.

I am not sure if this is an issue with this package or yunohost logs but I prefer to open a ticket and move it in needed than to not report it, I hope that's OK.

Thanks for the app anyway!

Add a checkbox to allow encrypt the data

Hello

Can you add a checkbox during the install of jirafeau to permit the overwrite of the value "enable_crypt" in conf/config.local.php (here)?
And so permit the saving of encrypted files.

Thank you

fix prosa

fix text upstream, and some fr translation

Can't upgrade jirafeau

# yunohost tools upgrade
Info: There is no package to upgrade
Info: The following apps will be upgraded : jirafeau
Info: Now upgrading app jirafeau…
Info: [....................] > Loading installation settings...
Info: [##..................] > Ensuring downward compatibility...
Info: [###.................] > Backing up the app before upgrading (may take a while)...
Info: [######..............] > Upgrading nginx web server configuration...
Info: Reload the service nginx
Info: [########............] > Making sure dedicated system user exists...
Info: [##########..........] > Upgrading php-fpm configuration...
Info: Reload the service php7.0-fpm
Warning: [WARN] File /var/www/jirafeau/lib/config.local.php has been manually modified since the installation or last upgrade. So it has been duplicated in /home/yunohost.conf/backup//var/www/jirafeau/lib/config.local.php.backup.20190517.231827
Info: [############........] > Upgrading jirafeau configuration...
Warning: --- /home/yunohost.conf/backup//var/www/jirafeau/lib/config.local.php.backup.20190517.231827	2019-04-10 10:23:24.131562390 +0200
Warning: +++ /var/www/jirafeau/lib/config.local.php	2019-05-17 23:18:28.428943684 +0200
Warning: @@ -62,7 +62,7 @@
Warning:  /* Enable the encryption feature
Warning:   * By enabling it, file-level deduplication won't work anymore. See FAQ.
Warning:   */
Warning: -$cfg['enable_crypt'] = true;
Warning: +$cfg['enable_crypt'] = false;
Warning: 
Warning:  /* Length of link reference
Warning:   */
Warning: rm: cannot remove '/var/www/jirafeau/install.php': No such file or directory
Warning: !!
Warning:   jirafeau's script has encountered an error. Its execution was cancelled.
Warning: !!
Warning: Upgrade failed.
Warning: Remove the user jirafeau
Warning: The app was restored to the way it was before the failed upgrade.
Error: Unable to upgrade jirafeau
Info: The operation 'Upgrade 'jirafeau' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20190517-211816-app_upgrade-jirafeau --share'

Found a bug in change_url script

Hello,

I had a bug on aarch64 device, when i tried to change the domain after installing Jirafeau , it didn't work as expected because of the regexp used there:

in file

ynh_replace_string --match_string="\$cfg['web_root'] = .*" --replace_string="\$cfg['web_root'] = 'https://' . '$new_domain' . '${new_path%/}' . '/';" --target_file="$final_path/lib/config.local.php"

I suggest adding a backslash to escape square brackets around web_root.

sed --in-place 's@$cfg\['\''web_root'\''\].*@$cfg['\''web_root'\''] = '\''https://'\'' . '\''mydata.io'\'' . '\''/fichiers'\'' . '\''/'\'';@g' /var/www/jirafeau//lib/config.local.php

this fix worked for me.

Do you want a pull request ?

Thomas

Impossible to leave empty password

Hi there.
I m trying to instal jirafeau but impossible to leave password field empty. (To allow the permission to all user) . i have this error : Le mot de passe doit comporter au moins 8 caractères

Password must contains at least 8 characters

Regards

Téléchargement des fichiers public en mode privé

Salut,

J'ai un manquement dans le fonctionnement de Jirafeau actuellement. En effet, soit je le laisse public et je dois m'assurer que tout les utilisateurs de mon Yunohost connaissent le mot de passe, soit je le rend privé mais je ne peux alors envoyer des fichiers qu'aux utilisateurs de mon Yunohost.

Il serait intéressant pourtant de pouvoir réserver l'upload de fichier aux utilisateurs yunohost sans mot de passe, tout en gardant la possibilité d'envoyer des fichiers à n'importe qui.

De mon côté, pour obtenir ce comportement j'utilise ces commandes:
sudo yunohost app setting jirafeau skipped_uris -v "/"
sudo yunohost app setting jirafeau protected_regex -v "jirafeau/$"
Ainsi, seule la racine de jirafeau est privé.

能不能获取文件的直链?

反正是临时的,不会有人盗链,获取直链可以方便传个视频加个video标签给朋友在线看

如果怕生成直链被盗链,可以加个权限,管理员上传可以获取直链,普通用户没有

timed out sur gros fichiers

Salut,

de la même manière que bozon, impossible d'uploader des "gros" fichiers.

timed out:

[error] 27659#0: *521443 upstream timed out (110: Connection timed out) while sending request to upstream, client: 192.168.1.151, server: crudelis.fr, request: "POST /jirafeau/script.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-jirafeau.sock"

Et visuellement, rien ne se passe dans un premier temps:
https://crudelis.fr/lutim/pFJq2OQU/AzESyUOi.jpeg
J'ai attendu plus d'une heure sur cette page sans résultats.

Et, en l'absence de timeout dans le log nginx, on se retrouve avec un résultat vide...
https://crudelis.fr/lutim/Aj11xEft/sMyb6tws.jpeg

Essai avec des fichiers de 2.3Go et 1.1Go.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.