diff --git a/manifest.toml b/manifest.toml index ce583ae..0d8ba7e 100644 --- a/manifest.toml +++ b/manifest.toml @@ -37,6 +37,9 @@ ram.runtime = "50M" [install.admin] type = "user" + [install.password] + type = "password" + [resources] [resources.sources] diff --git a/scripts/install b/scripts/install index a5f7561..f3ebc23 100755 --- a/scripts/install +++ b/scripts/install @@ -73,6 +73,15 @@ pushd $install_dir ynh_exec_warn_less ynh_exec_as $app php${phpversion} spark migrate --all popd +#================================================= +# SETUP APPLICATION WITH CURL +#================================================= +ynh_script_progression --message="Finalizing installation..." --weight=1 + +ynh_local_curl "/cp-install" + +ynh_local_curl "/cp-install/create-superadmin" "email=$email" "username=$admin" "password=$password" + #================================================= # END OF SCRIPT #=================================================