From bd61d6d32b8e34c8745a31ca267ba4b569ebc905 Mon Sep 17 00:00:00 2001 From: lapineige Date: Tue, 2 May 2023 23:43:56 +0200 Subject: [PATCH] cleaning + execute just as root --- scripts/install | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index bf26b94..c0f3fb0 100644 --- a/scripts/install +++ b/scripts/install @@ -70,16 +70,15 @@ source $install_dir/.env ynh_script_progression --message="Configuring Bonfire release..." --weight=1 cd $install_dir +ynh_exec_warn cat .env ynh_exec_warn just config - ynh_exec_warn cat .env #================================================= # Building the release #================================================= ynh_script_progression --message="Building Bonfire release..." --weight=1 -ynh_exec_warn ynh_exec_as $app -s $SHELL -lc "just rel-build" -ynh_exec_warn ls +ynh_exec_warn just rel-build #================================================= # Run the release @@ -88,14 +87,14 @@ release_folder="_build/prod/rel/bonfire" ynh_script_progression --message="Running database migrations..." --weight=1 # Database created before, let's run the migrations -ynh_exec_warn ynh_exec_as $app -s $SHELL -lc "just cmd $release_folder/bin/bonfire eval 'EctoSparkles.Migrator.migrate()'" +ynh_exec_warn just cmd $release_folder/bin/bonfire eval 'EctoSparkles.Migrator.migrate()' ynh_script_progression --message="Starting Bonfire..." --weight=1 -ynh_exec_warn ynh_exec_as $app -s $SHELL -lc "just cmd $release_folder/bin/bonfire start" +ynh_exec_warn just cmd $release_folder/bin/bonfire start # start bonfire as a daemon ynh_script_progression --message="Starting Bonfire daemon..." --weight=1 -ynh_exec_warn ynh_exec_as $app -s $SHELL -lc "just cmd $release_folder/bin/bonfire start daemon" +ynh_exec_warn ynh_exec_as just cmd $release_folder/bin/bonfire start daemon #================================================= # END OF SCRIPT