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-12-28 18:06:23 +01:00 committed by GitHub
parent 93bad7bbde
commit a24dd22aa6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -100,12 +100,12 @@ ynh_use_nodejs
#================================================= #=================================================
# Créer le dossier de log # Créer le dossier de log
sudo mkdir -p /var/log/$app mkdir -p /var/log/$app
sudo touch /var/log/$app/nodebb.log touch /var/log/$app/nodebb.log
install_log=/var/log/$app/installation.log install_log=/var/log/$app/installation.log
sudo touch $install_log touch $install_log
sudo chown $app -R /var/log/$app chown $app -R /var/log/$app
sudo chown admin -R $install_log chown admin -R $install_log
# Configuration de logrotate # Configuration de logrotate
ynh_use_logrotate ynh_use_logrotate
@ -122,7 +122,7 @@ ynh_setup_source "$final_path" # Télécharge la source, décompresse et copie d
# BEGINING OF THE INSTALLATION # BEGINING OF THE INSTALLATION
#================================================= #=================================================
sudo service mongod start systemctl start mongod
script_dir="$PWD" script_dir="$PWD"
pushd "$final_path" pushd "$final_path"
ynh_use_nodejs ynh_use_nodejs
@ -130,7 +130,7 @@ npm install --production >> $install_log 2>&1
npm install mongo npm install mongo
popd popd
sudo yunohost firewall allow Both $port yunohost firewall allow Both $port
#================================================= #=================================================
# CREATE A SQL BDD # CREATE A SQL BDD
@ -178,9 +178,9 @@ cat $final_path/config.json
#================================================= #=================================================
pushd $final_path pushd $final_path
sudo ./nodebb setup <<< \ ./nodebb setup <<< \
"$admin_name" "$admin_name"
sudo ./nodebb build ./nodebb build
popd popd
chown -R $app:$app $final_path chown -R $app:$app $final_path