From 579cf8817dd472d5972699c692884b095ace7359 Mon Sep 17 00:00:00 2001 From: frju365 Date: Thu, 28 Dec 2017 22:34:29 +0100 Subject: [PATCH] Update install --- scripts/install | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 6808dd5..49ebd21 100644 --- a/scripts/install +++ b/scripts/install @@ -33,7 +33,9 @@ ynh_abort_if_errors # Active trap pour arrêter le script si une erreur est dét domain=$YNH_APP_ARG_DOMAIN is_public=$YNH_APP_ARG_IS_PUBLIC path_url="" # Assure la compatibilité avec les fonctions utilisant $path_url -admin_name=$YNH_APP_ARG_ADMIN_NAME +admin_user=$YNH_APP_ARG_ADMIN_NAME +admin_mail=$YNH_APP_ARG_ADMIN_MAIL +admin_pass=$YNH_APP_ARG_ADMIN_PASS app=$YNH_APP_INSTANCE_NAME secret=$(ynh_string_random) @@ -179,11 +181,10 @@ cat $final_path/config.json #================================================= pushd $final_path -./nodebb setup <<< \ - "$admin_name" + ./nodebb build popd - +node app --setup=\"{\\\"url\\\":\\\"http://127.0.0.1:4567\\\",\\\"secret\\\":\\\"$secret\\\",\\\"database\\\":\\\"mongo\\\",\\\"mongo:host\\\":\\\"127.0.0.1\\\",\\\"mongo:port\\\":27017,\\\"mongo:username\\\":\\\"$dbuser\\\",\\\"mongo:password\\\":\\\"$dbpass\\\",\\\"mongo:database\\\":0,\\\"admin:username\\\":\\\"$admin_user\\\",\\\"admin:email\\\":\\\"$admin_mail\\\",\\\"admin:password\\\":\\\"$admin_pass\\\",\\\"admin:password:confirm\\\":\\\"$admin_pass\\\"}\" chown -R $app:$app $final_path #=================================================