1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nodebb_ynh.git synced 2024-09-03 19:46:29 +02:00
* Update nodebb.service

* Update install

* Update install

* Update and rename .fonctions to _common.sh

* Update install

* Update install

* Update install
This commit is contained in:
frju365 2017-07-08 18:20:55 +02:00 committed by GitHub
parent c36439667d
commit 8d98b5640a
2 changed files with 6 additions and 4 deletions

View file

@ -96,6 +96,7 @@ ynh_remove_systemd_config () {
fi
}
SETUP_SOURCE () { # Télécharge la source, décompresse et copie dans $final_path
src_url=$(cat ../conf/app.src | grep SOURCE_URL | cut -d'>' -f2)
src_checksum=$(cat ../conf/app.src | grep SOURCE_SUM | cut -d= -f2)

View file

@ -124,8 +124,9 @@ sudo chown www-data:www-data $final_path -R
sudo service mongod start
script_dir="$PWD"
pushd "$final_path"
sudo npm install --production
sudo npm install -g mongo
ynh_use_nodejs
sudo_path npm install --production >> $install_log 2>&1
sudo_path npm install -g mongo
popd
sudo yunohost firewall allow Both $port
@ -171,9 +172,9 @@ sudo sed -i "s@dbpass@$dbpass@g" $final_path/config.json
# CONFIGURE NODEBB
#=================================================
pushd "$final_path"
pushd $final_path
sudo chown -R $app: $final_path
sudo ./nodebb setup <<< \
sudo_path ./nodebb setup <<< \
"$admin_name"
popd