1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mediawiki_ynh.git synced 2024-09-03 19:46:05 +02:00
This commit is contained in:
Éric Gaspar 2023-04-10 18:11:11 +02:00
parent ca0babdb91
commit af25f09865
2 changed files with 2 additions and 2 deletions

View file

@ -72,7 +72,7 @@ fi
--dbname "$db_name" \ --dbname "$db_name" \
--dbprefix "mdk_" \ --dbprefix "mdk_" \
--lang "$language" \ --lang "$language" \
--pass "$admin_password" \ --pass "$password" \
"$wiki_name" "$admin" "$wiki_name" "$admin"
#================================================= #=================================================

View file

@ -102,7 +102,7 @@ fi
ynh_add_config --template="../conf/LocalSettings.php" --destination="$install_dir/LocalSettings.php" ynh_add_config --template="../conf/LocalSettings.php" --destination="$install_dir/LocalSettings.php"
# Check for admin password being too short for the new mediawiki requirements # Check for admin password being too short for the new mediawiki requirements
#REMOVEME? password_length=$(ynh_app_setting_get --app=$app --key=admin_password | awk '{print length}') password_length=$(ynh_app_setting_get --app=$app --key=password | awk '{print length}')
if (( password_length < 10 )); then 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 "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." ynh_print_warn -m "We are adapting the minimum length, but that would be great to change the admin password."