1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/zwiicms_ynh.git synced 2024-09-03 18:06:04 +02:00

test auto complete in curl

This commit is contained in:
pp-r 2021-03-04 19:39:26 +01:00 committed by GitHub
parent ccdbc7ab4b
commit 4029a93dc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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