mirror of
https://github.com/YunoHost-Apps/nodebb_ynh.git
synced 2024-09-03 19:46:29 +02:00
Fix
This commit is contained in:
parent
4e4e4c0ab9
commit
5c40b8e390
3 changed files with 5 additions and 4 deletions
3
conf/.env
Normal file
3
conf/.env
Normal file
|
@ -0,0 +1,3 @@
|
|||
export admin__username="__ADMIN__"
|
||||
export admin__password="__PASSWORD__"
|
||||
export admin__password__confirm="__PASSWORD__"
|
|
@ -2,10 +2,6 @@
|
|||
"url": "http://127.0.0.1:__PORT__",
|
||||
"secret": "__SECRET__",
|
||||
"port": "__PORT__",
|
||||
"admin__username": "__ADMIN__",
|
||||
"admin__password": "__PASSWORD__",
|
||||
"export admin__password__confirm": "__PASSWORD__",
|
||||
|
||||
"database": "redis",
|
||||
"redis": {
|
||||
"host": "127.0.0.1",
|
||||
|
|
|
@ -124,6 +124,7 @@ chown -R $app:www-data "$final_path"
|
|||
#=================================================
|
||||
|
||||
ynh_add_config --template="../conf/config.json" --destination="$final_path/config.json"
|
||||
ynh_add_config --template="../conf/.env" --destination="$final_path/config.base.env"
|
||||
chmod 666 "$final_path/config.json"
|
||||
chown $app "$final_path/config.json"
|
||||
|
||||
|
@ -132,6 +133,7 @@ chown $app "$final_path/config.json"
|
|||
#=================================================
|
||||
|
||||
pushd $final_path
|
||||
ynh_exec_as $app env $ynh_node_load_PATH $final_path/config.base.env
|
||||
ynh_exec_as $app env $ynh_node_load_PATH $final_path/nodebb setup $final_path/config.json #-l > $install_log
|
||||
popd
|
||||
|
||||
|
|
Loading…
Reference in a new issue