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-02 14:10:53 +02:00
parent b0c7c45113
commit 72ee28b74a
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -125,6 +125,8 @@ chown -R $app:www-data "$final_path"
#================================================= #=================================================
ynh_script_progression --message="Configuring the $app..." --weight=2 ynh_script_progression --message="Configuring the $app..." --weight=2
ynh_add_config --template="../conf/config.json" --destination="$final_path/config.json"
setup="{ setup="{
\"admin:username\": \"$admin\", \"admin:username\": \"$admin\",
\"admin:password\": \"$password\", \"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 ynh_exec_as $app $ynh_node_load_PATH $final_path/nodebb setup "${setup}" | tee -a $install_log
popd popd
ynh_add_config --template="../conf/config.json" --destination="$final_path/config.json"
chmod 400 "$final_path/config.json" chmod 400 "$final_path/config.json"
chown $app:$app "$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 # NGINX CONFIGURATION