1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nodebb_ynh.git synced 2024-09-03 19:46:29 +02:00

Update install

This commit is contained in:
ericgaspar 2021-09-01 17:05:27 +02:00
parent bcfca7676c
commit d9e3b43dc1
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -115,7 +115,6 @@ ynh_script_progression --message="Setting up source files..." --weight=2
ynh_app_setting_set --app=$app --key=final_path --value=$final_path ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
git clone -b $nodebb_version https://github.com/NodeBB/NodeBB.git "$final_path" --quiet 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 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
@ -133,6 +132,9 @@ popd
# CONFIGURE CONFIG.JSON FILE # CONFIGURE CONFIG.JSON FILE
#================================================= #=================================================
ynh_add_config --template="../conf/config.json" --destination="$final_path/config.json"
ynh_exec_as $app env $ynh_node_load_PATH $final_path/nodebb setup --schema --build
chmod 666 "$final_path/config.json" chmod 666 "$final_path/config.json"
chown $app "$final_path/config.json" chown $app "$final_path/config.json"