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
b095e011dd
commit
1ab82e6146
1 changed files with 11 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue