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