diff --git a/scripts/install b/scripts/install index 88a264b..f9218c4 100644 --- a/scripts/install +++ b/scripts/install @@ -114,29 +114,28 @@ ynh_script_progression --message="Setting up source files..." --weight=2 ynh_app_setting_set --app=$app --key=final_path --value=$final_path # Download, check integrity, uncompress and patch the source from app.src -#ynh_setup_source --dest_dir="$final_path" git clone -b $nodebb_version https://github.com/NodeBB/NodeBB.git "$final_path" --quiet +ynh_add_config --template="../conf/config.json" --destination="$final_path/config.json" chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" -#================================================= -# CONFIGURE CONFIG.JSON FILE -#================================================= - -ynh_add_config --template="../conf/config.json" --destination="$final_path/config.json" -chmod 666 "$final_path/config.json" -chown $app "$final_path/config.json" - #================================================= # CONFIGURE NODEBB #================================================= pushd $final_path - ynh_exec_as $app env $ynh_node_load_PATH $final_path/nodebb setup + ./nodebb setup popd +#================================================= +# CONFIGURE CONFIG.JSON FILE +#================================================= + +chmod 666 "$final_path/config.json" +chown $app "$final_path/config.json" + #================================================= # NGINX CONFIGURATION #=================================================