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:
parent
4d7c9a23cd
commit
33bd5b5d72
1 changed files with 9 additions and 10 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue