mirror of
https://github.com/YunoHost-Apps/yeswiki_ynh.git
synced 2024-09-03 18:05:56 +02:00
Admin password is not needed anymore, uses LDAP
This commit is contained in:
parent
dafb9cc8f6
commit
1ef3638e00
2 changed files with 4 additions and 11 deletions
|
@ -88,15 +88,6 @@
|
|||
},
|
||||
"choices": ["fr", "en", "ca", "es", "nl", "pt"],
|
||||
"default": "fr"
|
||||
},
|
||||
{
|
||||
"name": "password",
|
||||
"type": "password",
|
||||
"ask": {
|
||||
"en": "Set the administrator password",
|
||||
"fr": "Définissez le mot de passe administrateur"
|
||||
}
|
||||
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -30,7 +30,6 @@ admin=$YNH_APP_ARG_ADMIN
|
|||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||
wiki_name=$YNH_APP_ARG_WIKI_NAME
|
||||
language=$YNH_APP_ARG_LANGUAGE
|
||||
password=$YNH_APP_ARG_PASSWORD
|
||||
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
|
||||
|
@ -128,10 +127,13 @@ ynh_systemd_action --service_name=nginx --action=reload
|
|||
|
||||
ynh_script_progression --message="Finalizing installation..." --weight=2
|
||||
|
||||
|
||||
admin_temp_pass=$(ynh_string_random 6)
|
||||
|
||||
ynh_local_curl "/?PagePrincipale&installAction=install" "config[default_language]=$language" "config[wakka_name]=$wiki_name" \
|
||||
"config[root_page]=PagePrincipale" "config[mysql_host]=localhost" \
|
||||
"config[mysql_database]=$app" "config[mysql_user]=$db_user" "config[mysql_password]=$db_pwd" "config[table_prefix]=yeswiki_" \
|
||||
"admin_name=$admin" "admin_password=$password" "admin_password_conf=$password" \
|
||||
"admin_name=$admin" "admin_password=$admin_temp_pass" "admin_password_conf=$admin_temp_pass" \
|
||||
"admin_email=$admin@$domain" "submit=Continue"
|
||||
|
||||
# authorization of html
|
||||
|
|
Loading…
Reference in a new issue