From 72ee28b74ab4f5d8fe8de89461ad471b7c98da29 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 2 Sep 2021 14:10:53 +0200 Subject: [PATCH] Update install --- scripts/install | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index f3ca81b..0732d30 100644 --- a/scripts/install +++ b/scripts/install @@ -125,6 +125,8 @@ chown -R $app:www-data "$final_path" #================================================= ynh_script_progression --message="Configuring the $app..." --weight=2 +ynh_add_config --template="../conf/config.json" --destination="$final_path/config.json" + setup="{ \"admin:username\": \"$admin\", \"admin:password\": \"$password\", @@ -136,12 +138,8 @@ pushd $final_path ynh_exec_as $app $ynh_node_load_PATH $final_path/nodebb setup "${setup}" | tee -a $install_log popd -ynh_add_config --template="../conf/config.json" --destination="$final_path/config.json" chmod 400 "$final_path/config.json" chown $app:$app "$final_path/config.json" -pushd $final_path - ynh_exec_as $app $ynh_node_load_PATH $final_path/nodebb upgrade -popd #================================================= # NGINX CONFIGURATION