YunoHost-Apps / mediawiki_ynh

MediaWiki package for YunoHost
https://www.mediawiki.org/
GNU General Public License v3.0
8 stars 16 forks source link

Do not remove LocalSettings.php on upgrade (at least from 1.42 to 1.42.1) #144

Open MadMan247 opened 3 weeks ago

MadMan247 commented 3 weeks ago

Describe the bug

Upon upgrading, the file LocalSettings.php, located in /var/www/mediawiki/LocalSettings.php is overwritten or regenerated, which resets many settings that must be manually set, e.g. plugins that are enabled, the site name, and the site's icons. Having to reset this is tedious and unnecessary.

Context

Steps to reproduce

-Install updrade via webadmin -go to instance site -see default wiki logo set, and default wiki name (YunoWiki) -plugins broken (I fixed before I checked this, but this is likely the case)

Expected behavior

previous setup remains after upgrade

Logs

https://paste.yunohost.org/raw/isasiqarob

2024-07-03 17:26:11,525: DEBUG - + wiki_name_underscorified=YunoWiki
2024-07-03 17:26:11,525: DEBUG - + ynh_add_config --template=LocalSettings.php --destination=/var/www/mediawiki/LocalSettings.php