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 2017-04-19 11:05:11 +02:00 committed by GitHub
parent b095e011dd
commit 1ab82e6146

View file

@ -86,6 +86,16 @@ final_path=/var/www/$app
ynh_app_setting_set $app final_path $final_path
SETUP_SOURCE # Télécharge la source, décompresse et copie dans $final_path
#=================================================
# BEGINING OF THE INSTALLATION
#=================================================
script_dir="$PWD"
pushd "$final_path"
sudo npm install
sudo npm install -g mongo
popd
#=================================================
# CREATE A SQL BDD
#=================================================
@ -145,12 +155,10 @@ sudo sed -i "s@dbname@$dbname@g" $final_path/config.json
sudo sed -i "s@dbuser@$dbpass@g" $final_path/config.json
#=================================================
# INSTALL ETHERPAD
# CONFIGURE NODEBB
#=================================================
script_dir="$PWD"
pushd "$final_path"
sudo npm install
sudo chown -R $app: $final_path
sudo ./nodebb setup <<< \
"$admin_name