1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nodebb_ynh.git synced 2024-09-03 19:46:29 +02:00
This commit is contained in:
ericgaspar 2021-08-31 18:46:13 +02:00
parent 4e4e4c0ab9
commit 5c40b8e390
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 5 additions and 4 deletions

3
conf/.env Normal file
View file

@ -0,0 +1,3 @@
export admin__username="__ADMIN__"
export admin__password="__PASSWORD__"
export admin__password__confirm="__PASSWORD__"

View file

@ -2,10 +2,6 @@
"url": "http://127.0.0.1:__PORT__", "url": "http://127.0.0.1:__PORT__",
"secret": "__SECRET__", "secret": "__SECRET__",
"port": "__PORT__", "port": "__PORT__",
"admin__username": "__ADMIN__",
"admin__password": "__PASSWORD__",
"export admin__password__confirm": "__PASSWORD__",
"database": "redis", "database": "redis",
"redis": { "redis": {
"host": "127.0.0.1", "host": "127.0.0.1",

View file

@ -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/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" chmod 666 "$final_path/config.json"
chown $app "$final_path/config.json" chown $app "$final_path/config.json"
@ -132,6 +133,7 @@ chown $app "$final_path/config.json"
#================================================= #=================================================
pushd $final_path 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 ynh_exec_as $app env $ynh_node_load_PATH $final_path/nodebb setup $final_path/config.json #-l > $install_log
popd popd