diff --git a/check_process b/check_process index 4e5524c..62d0f52 100755 --- a/check_process +++ b/check_process @@ -6,8 +6,10 @@ ;; Test complet ; Manifest domain="domain.tld" (DOMAIN) - path="/cp-install" (PATH) + path="/path" (PATH) is_public=1 (PUBLIC|public=1|private=0) + admin="john" (USER) + password="pass" ; Checks pkg_linter=1 setup_sub_dir=0 @@ -16,8 +18,6 @@ setup_private=1 setup_public=1 upgrade=1 - #1.0.0 alpha.40 - upgrade=1 from_commit=ac00b520875beed49bb138e795562e1f74700ab9 #1.0.0 alpha.41 upgrade=1 from_commit=9c603f6b659e4191028cc909311a0cbde9955155 backup_restore=1 @@ -27,8 +27,6 @@ Email= Notification=none ;;; Upgrade options - ; commit=ac00b520875beed49bb138e795562e1f74700ab9 - name=1.0.0 alpha.40 ; commit=9c603f6b659e4191028cc909311a0cbde9955155 name=1.0.0 alpha.41 - manifest_arg=domain=DOMAIN&path=PATH&is_public=1& + manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=fr&is_public=1&password=pass& diff --git a/scripts/install b/scripts/install index 85929df..44120f3 100755 --- a/scripts/install +++ b/scripts/install @@ -123,7 +123,10 @@ ynh_systemd_action --service_name=nginx --action=reload # Installation with curl ynh_script_progression --message="Finalizing installation..." --weight=1 -ynh_local_curl "/cp-install" "email=$email" "username=$admin" "password=$password" + +ynh_local_curl "/cp-install" + +ynh_local_curl "/cp-install/create-superadmin" "email=$email" "username=$admin" "password=$password" ynh_permission_update --permission="main" --remove="visitors"