mirror of
https://github.com/YunoHost-Apps/yeswiki_ynh.git
synced 2024-09-03 18:05:56 +02:00
Escape spaces in wiki name during install
This commit is contained in:
parent
a9023de412
commit
d7dfc9a643
1 changed files with 3 additions and 1 deletions
|
@ -49,7 +49,9 @@ ynh_script_progression --message="Finalizing installation..." --weight=2
|
|||
|
||||
admin_temp_pass=$(ynh_string_random 20)
|
||||
|
||||
ynh_local_curl "/?PagePrincipale&installAction=install" "config[default_language]=$language" "config[wakka_name]=$wiki_name" \
|
||||
wiki_name_escaped=$(echo "$wiki_name" | sed 's/ /%20/g')
|
||||
|
||||
ynh_local_curl "/?PagePrincipale&installAction=install" "config[default_language]=$language" "config[wakka_name]=$wiki_name_escaped" \
|
||||
"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=$admin_temp_pass" "admin_password_conf=$admin_temp_pass" \
|
||||
|
|
Loading…
Reference in a new issue