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:
frju365 2018-01-28 15:52:30 +01:00 committed by GitHub
parent edf75d2703
commit 99074c5e2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -167,21 +167,21 @@ cat /etc/systemd/system/$app.service
# CONFIGURE SERVER.JS # CONFIGURE SERVER.JS
#================================================= #=================================================
#mv ../conf/config.json $final_path/config.json mv ../conf/config.json $final_path/config.json
#ynh_replace_string "__URL__" "$domain" "$final_path/config.json" ynh_replace_string "__URL__" "$domain" "$final_path/config.json"
#ynh_replace_string "__PORT__" "$port" "$final_path/config.json" ynh_replace_string "__PORT__" "$port" "$final_path/config.json"
#ynh_replace_string "__SECRET__" "$secret" "$final_path/config.json" ynh_replace_string "__SECRET__" "$secret" "$final_path/config.json"
#ynh_replace_string "dbuser" "$dbuser" "$final_path/config.json" ynh_replace_string "dbuser" "$dbuser" "$final_path/config.json"
#ynh_replace_string "dbname" "$dbname" "$final_path/config.json" ynh_replace_string "dbname" "$dbname" "$final_path/config.json"
#ynh_replace_string "dbpass" "$dbpass" "$final_path/config.json" ynh_replace_string "dbpass" "$dbpass" "$final_path/config.json"
#cat $final_path/config.json cat $final_path/config.json
#================================================= #=================================================
# CONFIGURE NODEBB # CONFIGURE NODEBB
#================================================= #=================================================
pushd $final_path pushd $final_path
node app --setup=\"{\\\"url\\\":\\\"http://127.0.0.1:4567\\\",\\\"secret\\\":\\\"$secret\\\",\\\"database\\\":\\\"$dbname\\\",\\\"mongo:host\\\":\\\"127.0.0.1\\\",\\\"mongo:port\\\":27017,\\\"mongo:username\\\":\\\"$dbuser\\\",\\\"mongo:password\\\":\\\"$dbpass\\\",\\\"mongo:database\\\":0,\\\"redis:host\\\":\\\"127.0.0.1\\\",\\\"redis:port\\\":6379,\\\"redis:password\\\":\\\"\\\",\\\"redis:database\\\":0,\\\"admin:username\\\":\\\"$admin_user\\\",\\\"admin:email\\\":\\\"$admin_mail\\\",\\\"admin:password\\\":\\\"$admin_pass\\\",\\\"admin:password:confirm\\\":\\\"$admin_pass\\\"}\" --ci=\"{\\\"host\\\":\\\"127.0.0.1\\\",\\\"port\\\":27017,\\\"database\\\":0}\"; <<< exit ./nodebb setup
./nodebb build ./nodebb build
popd popd
chown -R $app:$app $final_path chown -R $app:$app $final_path