YunoHost-Apps:testing
← Lab-8916100448256:testing
opened 07:12PM - 20 Feb 24 UTC
## Problem
YesWiki fails to performs backups when installing or updating an e… xtension or a theme.
The issue comes from having 2 php versions installed on the server : 7;4 and 8.2
The YesWiki php-fpm version is 8.2, but zhen it starts an async process to perform the backup its the php version 7.4 that is used.
## Solution
YesWiki code is changed to use an optional env var to define the php binary to use for async processes. See yhis PT : https://github.com/YesWiki/yeswiki/pull/1134
On YUNoHost side the env var is defined in the php-fpm pool configuration file
## PR Status
- [x] Code finished and ready to be reviewed/tested
- [x] The fix/enhancement were manually tested (if applicable)
- I have tested the fix by manually editing the files on a test server.
## Automatic tests
Automatic tests can be triggered on https://ci-apps-dev.yunohost.org/ *after creating the PR*, by commenting "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!". (N.B. : for this to work you need to be a member of the Yunohost-Apps organization)
C’est un problème connu du côté de YesWiki et qui demande un ajustement du paquet YNH (fait, cf. lien) et une sortie de la prochaine version de YesWiki.
En attendant, dans le wakka.config.php
à la racine du dossier YesWiki (souvent /var/www/yeswiki), il faut passer preupdate_backup_activated
à faux pour désactiver ces sauvegardes (et les faire via celle de Yunohost si on veut la même garantie !):
'authorize_bypass_preupdate_backup' => false,
'preupdate_backup_activated' => false,
'call_archive_async' => true,