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:
parent
cac02e1834
commit
dbbb5883dd
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
@ -172,9 +173,7 @@ sudo sed -i "s@dbpass@$dbpass@g" $final_path/config.json
|
|||
#=================================================
|
||||
|
||||
pushd $final_path
|
||||
ynh_use_nodejs
|
||||
sudo chown -R $app: $final_path
|
||||
sudo_path npm install --production >> $install_log 2>&1
|
||||
sudo_path ./nodebb setup <<< \
|
||||
"$admin_name"
|
||||
popd
|
||||
|
|
Loading…
Add table
Reference in a new issue