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 #=================================================