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:
parent
ccdbc7ab4b
commit
4029a93dc9
1 changed files with 14 additions and 9 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue