diff --git a/manifest.json b/manifest.json index 3070644..ed53bfb 100644 --- a/manifest.json +++ b/manifest.json @@ -67,6 +67,15 @@ "fr": "Si cette case est cochée, LimeSurvey sera accessible aux personnes n’ayant pas de compte. Vous pourrez changer ceci plus tard via la webadmin." }, "default": true + }, + { + "name": "password", + "type": "password", + "help": { + "en": "Use the help field to add an information for the admin about this question.", + "fr": "Utilisez le champ aide pour ajouter une information à l'intention de l'administrateur à propos de cette question." + }, + "example": "Choose a password" } ] } diff --git a/scripts/install b/scripts/install index c3ea91b..93ed030 100755 --- a/scripts/install +++ b/scripts/install @@ -25,6 +25,7 @@ path_url=$YNH_APP_ARG_PATH admin=$YNH_APP_ARG_ADMIN is_public=$YNH_APP_ARG_IS_PUBLIC language=$YNH_APP_ARG_LANGUAGE +password=$YNH_APP_ARG_PASSWORD app=$YNH_APP_INSTANCE_NAME @@ -121,11 +122,15 @@ ynh_add_config --template="../conf/config.php" --destination="$final_path/applic #================================================= ls_cli=$final_path/application/commands/console.php + fullname=$(ynh_user_get_info "$admin" "fullname") mail=$(ynh_user_get_info "$admin" "mail") # Permission should be correctly set before to do this -ynh_exec_as "$app" php $ls_cli install "$admin" "$(ynh_string_random 24)" "$fullname" "$mail" +ynh_exec_as "$app" php $ls_cli install "$admin" "$password" "$fullname" "$mail" + +# Permission should be correctly set before to do this +#ynh_exec_as "$app" php $ls_cli install "$admin" "$(ynh_string_random 24)" "$fullname" "$mail" #================================================= # LOAD SQL SPECIFIC CONFIG