1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mediawiki_ynh.git synced 2024-09-03 19:46:05 +02:00

Fix minimalpasswordlength line !

This commit is contained in:
Salamandar 2020-12-21 14:09:33 +01:00
parent 5885382e52
commit d3062f5b59
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@
"en": "A free and open source software wiki package written in PHP, originally for use on Wikipedia.",
"fr": "Un wiki à base de logiciels libres Open source, développé à lorigine pour Wikipédia ."
},
"version": "1.35.0~ynh2",
"version": "1.35.0~ynh3",
"url": "https://www.mediawiki.org",
"license": "GPL-2.0-or-later",
"maintainer": {

View file

@ -184,7 +184,7 @@ password_length=$(ynh_app_setting_get --app="$app" --key=admin_password | awk '{
if (( password_length < 10 )); then
ynh_print_warn -m "The current admin password is $password_length long. Mediawiki now requires a 10 chars minimum password."
ynh_print_warn -m "We are adapting the minimum length, but that would be great to change the admin password."
echo '$wgPasswordPolicy['policies']['default']['MinimalPasswordLength'] = 10;' >> "$final_path/LocalSettings.php"
echo "\$wgPasswordPolicy['policies']['default']['MinimalPasswordLength'] = 10;" >> "$final_path/LocalSettings.php"
fi
"php$phpversion" "$final_path/maintenance/update.php"