From 4747dba2808e2f74ea018bce8244d54e73da31e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 25 Oct 2023 09:00:45 +0200 Subject: [PATCH] fix --- manifest.toml | 3 +++ scripts/install | 9 +++++++++ 2 files changed, 12 insertions(+) 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 #=================================================