mirror of
https://github.com/YunoHost-Apps/nodebb_ynh.git
synced 2024-09-03 19:46:29 +02:00
N (#6)
* 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:
parent
c36439667d
commit
8d98b5640a
2 changed files with 6 additions and 4 deletions
|
@ -96,6 +96,7 @@ ynh_remove_systemd_config () {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SETUP_SOURCE () { # Télécharge la source, décompresse et copie dans $final_path
|
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_url=$(cat ../conf/app.src | grep SOURCE_URL | cut -d'>' -f2)
|
||||||
src_checksum=$(cat ../conf/app.src | grep SOURCE_SUM | cut -d= -f2)
|
src_checksum=$(cat ../conf/app.src | grep SOURCE_SUM | cut -d= -f2)
|
||||||
|
|
|
@ -124,8 +124,9 @@ sudo chown www-data:www-data $final_path -R
|
||||||
sudo service mongod start
|
sudo service mongod start
|
||||||
script_dir="$PWD"
|
script_dir="$PWD"
|
||||||
pushd "$final_path"
|
pushd "$final_path"
|
||||||
sudo npm install --production
|
ynh_use_nodejs
|
||||||
sudo npm install -g mongo
|
sudo_path npm install --production >> $install_log 2>&1
|
||||||
|
sudo_path npm install -g mongo
|
||||||
popd
|
popd
|
||||||
|
|
||||||
sudo yunohost firewall allow Both $port
|
sudo yunohost firewall allow Both $port
|
||||||
|
@ -171,9 +172,9 @@ sudo sed -i "s@dbpass@$dbpass@g" $final_path/config.json
|
||||||
# CONFIGURE NODEBB
|
# CONFIGURE NODEBB
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
pushd "$final_path"
|
pushd $final_path
|
||||||
sudo chown -R $app: $final_path
|
sudo chown -R $app: $final_path
|
||||||
sudo ./nodebb setup <<< \
|
sudo_path ./nodebb setup <<< \
|
||||||
"$admin_name"
|
"$admin_name"
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue