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

No more password

This commit is contained in:
Kay0u 2020-03-24 18:51:20 +01:00
parent 2a79a5c7c4
commit 6e57036c2f
No known key found for this signature in database
GPG key ID: 7FF262C033518333
2 changed files with 1 additions and 10 deletions

View file

@ -50,14 +50,6 @@
},
"example": "johndoe"
},
{
"name": "password",
"type": "password",
"ask": {
"en": "Choose a password for the administrator",
"fr": "Choisissez un mot de passe pour l'administrateur"
}
},
{
"name": "is_public",
"type": "boolean",

View file

@ -25,7 +25,6 @@ ynh_abort_if_errors
domain=$YNH_APP_ARG_DOMAIN
path_url=$YNH_APP_ARG_PATH
admin=$YNH_APP_ARG_ADMIN
password=$YNH_APP_ARG_PASSWORD
is_public=$YNH_APP_ARG_IS_PUBLIC
app=$YNH_APP_INSTANCE_NAME
@ -51,7 +50,6 @@ ynh_script_progression --message="Storing installation settings..."
ynh_app_setting_set --app=$app --key=domain --value=$domain
ynh_app_setting_set --app=$app --key=path --value=$path_url
ynh_app_setting_set --app=$app --key=admin --value=$admin
ynh_app_setting_set --app=$app --key=password --value=$password
ynh_app_setting_set --app=$app --key=is_public --value=$is_public
#=================================================
@ -128,6 +126,7 @@ chown -R "$app": "$final_path"
ynh_script_progression --message="Configuring the application..." --weight=190
email=$(ynh_user_get_info $admin mail)
password=$(ynh_string_random --length=30)
exec_as "$app" php$YNH_PHP_VERSION "$final_path/admin/cli/install.php" --wwwroot="https://$domain${path_url%/}" --dataroot=$data_path --dbtype='pgsql' --dbname=$db_name --dbuser=$db_name --dbpass=$db_pwd --adminuser=$admin --adminpass=$password --adminemail=$email --fullname="YunoHost" --shortname="YNH" --non-interactive --agree-license