From 4029a93dc908a552681b3f66183eda745c5914e9 Mon Sep 17 00:00:00 2001 From: pp-r <64266134+pp-r@users.noreply.github.com> Date: Thu, 4 Mar 2021 19:39:26 +0100 Subject: [PATCH] test auto complete in curl --- scripts/install | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/scripts/install b/scripts/install index 83ecf6d..873385c 100644 --- a/scripts/install +++ b/scripts/install @@ -229,10 +229,24 @@ ynh_add_fpm_config # Reload NGINX #ynh_systemd_action --service_name=nginx --action=reload +installId=$YNH_APP_ARG_ADMIN +installPassword=$YNH_APP_ARG_PASSWORD +installConfirmPassword=$YNH_APP_ARG_PASSWORD +installMail=$(ynh_user_get_info --username=$admin --key=mail) +installFirstname=$(ynh_user_get_info --username=$admin --key=firstname) +installLastname=$(ynh_user_get_info --username=$admin --key=lastname) +installDefaultData=1 +installSubmit=1 + # Installation with curl #ynh_script_progression --message="Finalizing installation..." --time --weight=1 #ynh_local_curl "/INSTALL_PATH" "key1=value1" "key2=value2" "key3=value3" +installUrl="/?install" +ynh_local_curl $installUrl "installId=$installId" "installPassword=$installPassword" "installConfirmPassword=$installConfirmPassword" "installMail=$installMail" "installFirstname=$installFirstname" "installLastname=$installLastname" "installDefaultData=$installDefaultData" +installUrl="/?install" +# "installSubmit=installSubmit" + # Remove the public access ynh_permission_update --permission="main" --remove="visitors" @@ -370,15 +384,6 @@ ynh_script_progression --message="Reloading nginx web server..." --time --weight ynh_systemd_action --service_name=nginx --action=reload -installId=$YNH_APP_ARG_ADMIN -installPassword=$YNH_APP_ARG_PASSWORD -installConfirmPassword=$YNH_APP_ARG_PASSWORD -installMail=$(ynh_user_get_info --username=$admin --key=mail) -installFirstname=$(ynh_user_get_info --username=$admin --key=firstname) -installLastname=$(ynh_user_get_info --username=$admin --key=lastname) -installDefaultData=1 -installSubmit=1 - #================================================= # END OF SCRIPT #=================================================